I'm trying to only allow certain tags for text that is input through a text editor. I've got the following code that all text is filtered through first:
$_content = strip_tags($_content, '<p></p><a></a><ul></ul><li></li><h1></h1>');
My understanding is that this will allow the tags above and strip the rest out, but I noticed <span> and <font> tags are making it through.
Is there another function to use to strip out the <span> or <font> tags or am I misusing the strip_tags function?