posativ/acrylamid — pull request #197 by geekman (2014-01-05 15:45:29+00:00)
Title: Escape quotes in HTML attributes

Quotes in HTML attributes are not quoted, thereby causing the HTMLParser to ignore the remaining part of the document. This bug was found due to a [Python-Markdown parsing bug I've filed here](https://github.com/waylan/Python-Markdown/pull/275).

The bug only happens when more than one filter that uses HTMLParser is chained. The input HTML is `` and after one round of parsing it becomes `` and this input to the next filter will result in (silent) truncation due to invalid HTML.