Reputation: 3108
How to I print (or store as a string) the HTML of the current page being displayed in a WebView?
Upvotes: 0
Views: 320
Reputation: 300
I tried this:
NSString *test = [webViewTest stringByEvaluatingJavaScriptFromString:@"document.documentElement.outerHTML"];
It works.
Upvotes: 2