That's pretty cool - and there even appears to be a plugin for it:
http://www.symfony-project.org/plugins/sfXssSafePlugin

-----Original Message-----
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
On Behalf Of Brian Racer
Sent: 14 May 2009 00:46
To: symfony-users@googlegroups.com
Subject: [symfony-users] Re: Easiest way to filter HTML inputs


If you want to whitelist certain type of tags and attributes look into 
HTMLPurifier(http://htmlpurifier.org/).

Brian

Adrien Mogenet wrote:
> Hi everyone,
>
> I was wondering what's the better way (or the easier) to filter HTML
> inputs ?
> I mean, users can in a form submit inputs like this :
> "<span><h1>foobar</h1></span>"
>
> Comments are welcome !
>
> --
> Adrien
> >
>   



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to