Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
May I ask how you are going to be using it? You need to be careful, because the second argument to strip_tags will allow certain tags, but will also allow all attributes on those tags. If you're using this to sanitize user input you'll need to implement a custom means of removing certain attributes if this is sanitizing publicly inputted information. Stuff like onmouseover and onclick can be quite bad for your page if it is injected by a random person.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|