Re: Use lxml.html.clean.Cleaner for safe HTML transforms?

Timo Stollenwerk <tisto-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Am 06.08.2014 um 15:43 schrieb Tom Gross:
> Hi Plone developers
> 
> I did a little experiment using lxml cleaner for safe HTML 
> transformation in PortalTransforms [1]. It looks very promising (fast 
> and clean!) so far but some tests are failing [2]. For me most of the 
> test fixtures seem trivial to me but I wanted to make sure that this is 
> acceptable and this is what we want in Plone 5 before I go on fixing them.

That's awesome! The last time I checked the code was using regular
expressions, which is aweful. Though, we have to check if lxml works
well with really broken HTML code I guess.

We might need a PLIP (we can discuss this at the next framework team
meeting). Though, I'm definitely in favor of moving stuff to lxml!

Cheers,
Timo

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.