tags:

views:

121

answers:

1

Hi all,

    I am trying to load a html string as
NSString *htmlData = @"This is a  <b> bold text </b>  ";

    [aWebView loadHTMLString:htmlData baseURL:nil];

but i am not getting the out as bold text. Its just displaying the output as bold text

What am i doing wrong ?

I guess this is a bug in WebView , as it is not able to render the htmlentities properly.

Thanks Biranchi

+1  A: 

Not sure from your question what you want exactly, some of the markup has been likely eaten by stackoverflow.

Anyway this HTML:

This is a  <b> bold text </b>

display as:

This is a  <b> bold text </b>

Whereas this HTML:

This is a  <b> bold text </b>

displays as:

This is a  <b>bold text </b>

Finally this:

This is a  <b>bold text </b>

display actual bold text:

This is a bold text

duncanwilcox
thanks , got it
Biranchi