ios - Objective C: Stripping HTML attributes from a string -
there lot of answers stripping html tags string, i'd strip specific attribute: style. html i'm dealing has nasty inline styles, , looks this:
<p class="someclass" style="margin-left:2cm;text-indent:-36.0pt">blah.</p>
in order adjust display application, need strip style attribute. there fast way process document this? needs work in ios.
thanks!
use xslt transformation. see http://developer.apple.com/library/mac/documentation/cocoa/conceptual/nsxml_concepts/articles/writingxml.html#//apple_ref/doc/uid/tp40001256-112639
Comments
Post a Comment