[Twisted-Python] XMLString clarification
Glyph
glyph at twistedmatrix.com
Wed Apr 9 11:45:06 MDT 2014
On Apr 8, 2014, at 7:38 PM, Kevin Mcintyre <kebin70 at gmail.com> wrote:
> I've opted for placeholder and added callback to flatten.
>
> I'm a hack, and it was holding up delivery of email.
What I would do is use html5lib to parse the HTML, then emit it as HTML before re-parsing it as XML.
XMLString is designed to read templates written by a programmer, not arbitrary garbage HTML off the internet. There are other libraries for that :-).
-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20140409/f628c331/attachment-0002.html>
More information about the Twisted-Python
mailing list