php - strip all classes from p tags -


I was wondering if anyone had a work address in php to remove all classes from a string. Actually I only

  & lt; P & gt;  
  & lt; P class = "..." & gt; Instead of  

tag

if it makes sense :)

I say meaningful because in some parts of your body the class =">

It can be made a little more robust by looking for class = "inside tags with elbow brackets.


Comments