We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6578e59 + 408a2ea commit ad0bf72Copy full SHA for ad0bf72
process_request/routines.py
@@ -21,6 +21,8 @@ class Processor(object):
21
22
def strip_tags(self, user_string):
23
"""Strips XML and HTML tags from a string."""
24
+ if user_string is None:
25
+ return None
26
try:
27
xmldoc = ET.fromstring(f'<xml>{user_string}</xml>')
28
textcontent = ''.join(xmldoc.itertext())
0 commit comments