2

Possible Duplicate:
display text in uiwebview in iphone

I have a String in HTML format.

I want to first convert This HTML string into normal string and then display the converted normal string into webview.(Also I want it in 3 paragraphs.)

How to do it in UIWebview?

Community
  • 1
  • 1

2 Answers2

3

try this?

NSString *myText = [self.webView stringByEvaluatingJavaScriptFromString:
                                          @"document.body.textContent"];
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
adali
  • 5,977
  • 2
  • 33
  • 40
0

it will help your problem for convert html in text How to convert NSString HTML markup to plain text NSString?

for other problem try this link display text in uiwebview in iphone

you can use

NSString *str = [self.mYwebView stringByEvaluatingJavaScriptFromString:
                                      @"document.body.textContent"];
Community
  • 1
  • 1
Ankit Gupta
  • 958
  • 1
  • 6
  • 19