diff options
-rw-r--r-- | markdown/serializers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/serializers.py b/markdown/serializers.py index 3cfa6bb..20cc45a 100644 --- a/markdown/serializers.py +++ b/markdown/serializers.py @@ -53,7 +53,7 @@ __all__ = ['to_html_string', 'to_xhtml_string'] HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr", "img", "input", "isindex", "link", "meta", "param") -RE_AMP = re.compile(r'&(?!(?:\#[0-9]+|[0-9a-z]+);)', re.I) +RE_AMP = re.compile(r'&(?!(?:\#[0-9]+|\#x[0-9a-f]+|[0-9a-z]+);)', re.I) try: HTML_EMPTY = set(HTML_EMPTY) |