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.
1 parent 9589d3f commit 67eb998Copy full SHA for 67eb998
1 file changed
ietf/utils/soup2text.py
@@ -51,6 +51,8 @@ def normalize(str):
51
# Normalize whitespace at the beginning and end of the string
52
str = re.sub("^[ \t\n]+", " ", str)
53
str = re.sub("[ \t\n]+$", " ", str)
54
+ # remove comments
55
+ str = re.sub("(?s)<!--.*?-->", "", str)
56
# remove xml PIs and metainformation
57
str = re.sub("<![^>]*>", "", str)
58
str = re.sub("<\?[^>]*\?>", "", str)
0 commit comments