Filtering HTML Input |
[eluser]richzilla[/eluser]
Are there any good libraries for filtering html input from a user? I want my users to still be fairly flexible with the tags they can use, but obviously i want to stop any javascript from being saved in the database? At present im using basic regex statements that pick up the [removed] and [removed] tags, although a little bit of research has revealed that these arent really sufficient. Any help would be appreciated. Thanks
[eluser]WanWizard[/eluser]
Where I need PHP4 compatibilty I use htmLawed, for PHP5 only I use HTMLpurifier.
|
Welcome Guest, Not a member yet? Register Sign In |