We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6fcbec commit ba0daeaCopy full SHA for ba0daea
process_request/routines.py
@@ -20,6 +20,8 @@ class Processor(object):
20
21
def strip_tags(self, user_string):
22
"""Strips XML and HTML tags from a string."""
23
+ if user_string is None:
24
+ return None
25
try:
26
xmldoc = ET.fromstring(f'<xml>{user_string}</xml>')
27
textcontent = ''.join(xmldoc.itertext())
0 commit comments