There are a lot of answers for stripping HTML tags from a string, but I'd like to strip only a specific attribute: style. The HTML that I'm dealing with has some seriously nasty inline styles, and often looks something like this:
<p class="someclass" style="margin-left:2cm;text-indent:-36.0pt">Blah.</p>
In order to adjust the display for my application, I need to strip that style attribute. Is there a fast way to process the document to do this? It needs to work in iOS.
Thanks!