I have an HTML string that I need to modify its elements.
I looked into NSXMLParser
, but didn't see any method to modify the elements while reading them.
I don't like the solution of creating a NSMutableString
and adding strings to it.
Is there a way to read HTML string and modify its element in an elegant way?
e.g.,
<div style="color:grey"></div>
will be
<div style="color:black"></div>
Unfortunately I saw that one cannot use NSXMLDocument
in an iPhone app.