Here is my situation,
I have a form input. I want people to be able to use some HTML tags, ie img, strong, h1, etc. but I want to filter out dangerous tags, ie script etc.
Basically I want people to be able to use certain tags that are not potentially harmful.
What is the best way to do this?
Thanks.
Filter input based on white list.
Moderator: General Moderators
Re: Filter input based on white list.
strip_tags() will allow tags you specify and strip out the remainder.
Re: Filter input based on white list.
Perfect. Thank you.