Ezio Melotti added the comment: That's because ' is not a valid character reference in HTML 4, but only in HTML5/XML/XHTML. A mapping that contains a list of HTML 5 entities has been added from Python 3.3. Modules like HTMLParser also include ' among the entities while parsing.
---------- assignee: -> ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed type: -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16766> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com