Thanks for all the answers --

Mark, do you use Markdown or textile at mark-story.com to write blog posts?
Just curious since it seems you have lots of HTML in there.

Thanks again,

Loic

On Wed, Oct 6, 2010 at 1:16 PM, mark_story <[email protected]> wrote:

> HTML purifier is miles better than the Sanitize.  I would recommend
> escaping and using a text processor like markdown or textile.
> However, if you need to accept html from the unwashed masses, use
> HTMLPurifier.
>
> -Mark
>
> On Oct 4, 1:02 pm, Loic Duros <[email protected]> wrote:
> > Hello,
> >
> > I'm currently building a blog with CakePHP, and I would like to
> > sanitize/filter my posts before they are displayed on screen to prevent
> > cross-site scripting. However, I would still like to allow for a great
> deal
> > of HTML markup and attributes in the HTML. I have tried using the
> Sanitize
> > Core Library but, as far as I know, it doesn't allow for filtering some
> tags
> > while keeping others. As a result, I'm looking into HTML Purifier (
> http://htmlpurifier.org/) to do the job in my controller and/or view
> > template files. I found the following Brita Component in the Bakery:
> http://bakery.cakephp.org/articles/view/brita-component-with-html-pur...
> >
> > I wonder however if anyone has implemented such a filtering/sanitizing
> > solution for their site and if I'm missing something obvious I should be
> > using to secure my site on that end.
> >
> > Thank you,
> >
> > Loic
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Loic J. Duros - www.lduros.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to