Re: Use lxml.html.clean.Cleaner for safe HTML transforms?
Wichert Akkerman <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
> On 06 Aug 2014, at 15:43, Tom Gross <[email protected]> wrote: > > 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]. You may also want to look at htmllaundry (see http://pypi.python.org/pypi/htmllaundry <http://pypi.python.org/pypi/htmllaundry> ). That has various routines to sanitize and clean html, using lxml under the hood. NuPlone[r] (https://pypi.python.org/pypi/NuPlone <https://pypi.python.org/pypi/NuPlone> ) has already been using this for a number of years. Wichert. ------------------------------------------------------------------------------ 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 _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers