Fix for nested comments <!--<!-- comment -->--> with BS3.

This commit is contained in:
Jim Miller 2014-12-19 17:55:56 -06:00
parent 5426725a26
commit 4cbca8dd1a

View file

@ -682,7 +682,7 @@ class Tag(PageElement):
return self.__str__(encoding)
def __unicode__(self):
return self.__str__(None)
return str(self).decode(DEFAULT_OUTPUT_ENCODING)
BARE_AMPERSAND_OR_BRACKET = re.compile("([<>]|"
+ "&(?!#\d+;|#x[0-9a-fA-F]+;|\w+;)"