Welcome Guest, Not a member yet? Register   Sign In
Filtering HTML Input
#1

[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
#2

[eluser]WanWizard[/eluser]
Where I need PHP4 compatibilty I use htmLawed, for PHP5 only I use HTMLpurifier.
#3

[eluser]richzilla[/eluser]
Thanks for the nod, looks like itll do the trick




Theme © iAndrew 2016 - Forum software by © MyBB