I’ve seen a lot of expressions to remove a specific tag (or many specified tags), and one to remove all but one specific tag, but I haven’t found a way to remove all except many excluded (i.e. all except p, b, i, u, a, ul, ol, li) in PHP. I’m far from good with regex, so I’d need a hand. 🙂 Thanks!
I’ve seen a lot of expressions to remove a specific tag (or many specified
Share
strip_tags()does exactly this.