how to remove html element's style attribute using Hpricot?
- by shewei
like this:
<p style="font-size: 12pt;">
Hello world
<span style="font-weight: bold;">just do it</span>
</p>
I want to remove every element's "style" attribute. I want the result like this:
<p>Hello world <span>just do it</span></p>
how to do this using hpricot?
thanks.