Fix charrefs.

Forgot to include # when reconstructing charrefs from their "name".
This commit is contained in:
Denis Kasak 2018-03-24 14:15:41 +01:00
parent 6eec395254
commit 6e9275da7f
2 changed files with 19 additions and 1 deletions

View file

@ -404,7 +404,7 @@ class MatrixHtmlParser(HTMLParser):
self.text += self.unescape("&{};".format(name))
def handle_charref(self, name):
self.text += self.unescape("&{};".format(name))
self.text += self.unescape("&#{};".format(name))
def get_substrings(self):
if self.text: