I am trying to print HTML with this JavaScript in the webview, however it is literally printing <p>HELLO</p>
. How can I fix that?
NSString* statement = [NSString stringWithFormat:@"document.getElementById('test').innerText = '<p>HELLO</p>'"];
[self.myWebView stringByEvaluatingJavaScriptFromString:statement];