php regexp: remove all atributes from an html tag
- by andufo
i have this html code:
<p style="padding:0px;">
<strong style="padding:0;margin:0;">hello</strong>
</p>
but it should become (for all possible html tags):
<p>
<strong>hello</strong>
</p>
this is driving me crazy, is there a regexp expert that can give me a hand? thanks!