diff --git a/src/spicy/utils/html.py b/src/spicy/utils/html.py index b326fef..bebba78 100755 --- a/src/spicy/utils/html.py +++ b/src/spicy/utils/html.py @@ -124,7 +124,7 @@ def __get__(self, inst, cls): setattr(inst, self.name, result) return result -CDATA_RE = re.compile(u'[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F%s]') +CDATA_RE = re.compile(u'[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F]') cdata = lambda s: '' % CDATA_RE.sub( ' ', s).replace(']]>', ']]]]>') # Expand ]]> to an escaped version that doesn't end CDATA block. We could