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 -~----------~----~----~----~------~----~------~--~---