SyntaxFix
Write A Post
Hire A Developer
Questions
I use a combined version :
strip_tags(preg_replace("/&(?!#?[a-z0-9]+;)/", "&",$textorhtml))