How do you allow certain HTML in a string? for example I want to strip <img> and preserve <a><b><u><i> tags..
Thanks!
First strip all the tags from the string, then change all <b> <u> etc. with the normal tags 🙂 (You can change them with str_replace() )
What about strip_tags($string, "<b><u><i>")
Well if you knew the answer, why did you ask?