Is it possible to read the raw HTML content of a web page that has been loaded into a UIWebView
?
If not, is there another way to pull raw HTML content from a web page in the iPhone SDK (such as an equivalent of the .NET WebClient::openRead
)?
Is it possible to read the raw HTML content of a web page that has been loaded into a UIWebView
?
If not, is there another way to pull raw HTML content from a web page in the iPhone SDK (such as an equivalent of the .NET WebClient::openRead
)?
(Xcode 5 iOS 7) Universal App example for iOS 7 and Xcode 5. It is an open source project / example located here: Link to SimpleWebView (Project Zip and Source Code Example)
if you want to extract the contents of an already-loaded UIWebView, -stringByEvaluatingJavaScriptFromString. For example:
To get the whole HTML raw data (with
<head>
and<body>
):I use a swift extension like this:
To read:-
To modify:-
you should try this: