summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2018-09-25 16:37:15 +0300
committerDmitry Shachnev <mitya57@gmail.com>2018-09-25 16:37:15 +0300
commitebe3485f38cb9065cfc58915e663b02be31aa19a (patch)
tree52cc41e52e6f9149e29b645b8493939cc4f0c4d3
parent0889b5e37eb70f50e1adb5d9c38cdbac0cc82fb7 (diff)
downloadpython-markdown-ebe3485f38cb9065cfc58915e663b02be31aa19a.tar.gz
Also update RE_AMP in serializers.py
-rw-r--r--markdown/serializers.py2
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)