Re: Use lxml.html.clean.Cleaner for safe HTML transforms?
espen <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
Does anyone have some «ugly html» that I could test with?
(I know the «basics» to test, but maybe there are other things (like embedding a script in an image tag or something similar)
All suggestions welcome….
Espen
https://www.youtube.com/watch?v=jE1gLOBBKb4
7. aug. 2014 kl. 10:39 skrev c.ledermann [via Plone] <ml-node+s293351n7572220h73-PKuAHvtXa09l57MIdRCFDg@public.gmane.org>:
> I used HTML Laundry in the past and was very content with it.
>
> I threw some pretty nasty html at it , parts copied from ms word
> some invalid and iirc some not even well formed.
>
> it worked as advertised
>
> On Thu, Aug 7, 2014 at 9:27 AM, Tom Gross <[hidden email]> wrote:
>
> > Started one:
> > https://dev.plone.org/ticket/14929
> >
> > Tom
> >
> > Am 06.08.2014 19:42, schrieb Wichert Akkerman:
> >>
> >>> On 06 Aug 2014, at 15:43, Tom Gross <[hidden email]> 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
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/plone-developers
> >>
> >
> >
> >
> > ------------------------------------------------------------------------------
> > 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
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/plone-developers
>
>
>
> --
> Best Regards,
>
> Christian Ledermann
>
> London - UK
> Mobile : +44 7474997517
>
> <*)))>{
>
> If you save the living environment, the biodiversity that we have left,
> you will also automatically save the physical environment, too. But If
> you only save the physical environment, you will ultimately lose both.
>
> 1) Don’t drive species to extinction
>
> 2) Don’t destroy a habitat that species rely on.
>
> 3) Don’t change the climate in ways that will result in the above.
>
> }<(((*>
>
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/plone-developers
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://plone.293351.n2.nabble.com/Use-lxml-html-clean-Cleaner-for-safe-HTML-transforms-tp7572195p7572220.html
> To start a new topic under Core Developers, email ml-node+s293351n293355h58-PKuAHvtXa09l57MIdRCFDg@public.gmane.org
> To unsubscribe from Plone, click here.
> NAML
--
View this message in context: http://plone.293351.n2.nabble.com/Use-lxml-html-clean-Cleaner-for-safe-HTML-transforms-tp7572195p7572383.html
Sent from the Core Developers mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers