About Me

My photo
Drum & Bass Producer, Software Developer, Love my Cats

iPhone : How to get UIWebView html content

While debugging a UIWebView iPhone app, I wanted to know what is in the html content.
This is how to get the html the uiwebview is showing:


NSString *html = [yourWebView stringByEvaluatingJavaScriptFromString:
@"document.body.innerHTML"];



Hope this helps you the next time you want to check the HTML inside a UIWebView