I want to remove text inside <p>
tags for a block of html text. I am trying to standardize some text and remove all class, align, and other information. Every example I can find seems to deal with stripping html, and I don't want to strip the tags. I just want to make them all plain.
So if I have something like this:
<p class='MsoBodyText' align='left'>
some paragraph blah blah blah
</p>
<p class='SomeClassIDontWant' align='right'>
some other paragraph blah blah blah
</p>
I want to return:
<p>
some paragraph blah blah blah
</p>
<p>
some other paragraph blah blah blah
</p>