Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- Hello World
- </body>
- </html>
- NSString *YOURSTRING = @"YOUR String as contains Html tags";
- NSData *data = [YOURSTRING dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];
- [YOURWEBVIEW loadData:data MIMEType:@"text/plain" textEncodingName:@"UTF-8" baseURL:nil];
- <html><br>
- <body><br>
- Hello World<br>
- </body><br>
- </html>
- replaceOccurancesOfString:@"<" withString:@"<"
- replaceOccurancesOfString:@">" withString:@">"
Add Comment
Please, Sign In to add comment