First I parse XML and retrieve this:
<p><strong>Berns Salonger - the City's
The I decode it with MWFeedParser (stringByDecodingHTMLEntities) and retrieve this:
<p><strong>Berns Salonger - the City's Ideal Meeting Place
Note that this is only one line of many many lines which includes alot of
tags.
Then I replace
with \n and the console writes out the text with new lines. Everything is great except that all the other HTML tags is still there.
So I then run stringByConvertingHTMLToPlainText and all HTML tags dissapears. But also my replaced new lines.
How can I decode HTML without and at the same time replace
with \n to print out a nice formatted text in a UITextView?
and
? I can't fint the HTML entity for that. I thought it was ΒΆ but it wasn't. β Fernando Redondo Sep 28 '10 at 12:06" withString:@"<p>"]; contentText = [contentText stringByReplacingOccurrencesOfString:@"
" withString:@"</p>"]; But that didn't work either. β Fernando Redondo Sep 28 '10 at 12:17: Maybe use two of them for double spacing.
β Josh Hinman Sep 28 '10 at 19:33