Re: Use lxml.html.clean.Cleaner for safe HTML transforms?
Maurits van Rees <m.van.rees-1kr/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Organization | Zest Software |
| Message-ID | <[email protected]> |
Tom Gross schreef op 06-08-14 15:43: > 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. I was going to say that it looks like this means the configuration that we have now in the html filtering control panel is not used anymore. At least it is not used in the current code on your branch. But from looking at the help of the Cleaner class it looks like you can configure it after all. Maybe not exactly like we do now, but close; possibly even with easier configuration. Do you plan on adding that? Thanks, if lxml can handle this for us that seems good to me. -- Maurits van Rees: http://maurits.vanrees.org/ Zest Software: http://zestsoftware.nl ------------------------------------------------------------------------------ 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