How to show only section of site in UiWebView?
<p>I want to show site in UiWebView but I don't need to show all site but only from <code>&lt;section id="xxx"&gt;</code> to <code>&lt;/section&gt;</code> with optional <code>&lt;head&gt;</code> for CSS styles. I tried to download html code and paste it to UiWebView </p>

<pre><code>NSString *string = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://example.com/page"] encoding:NSUTF8StringEncoding error:nil];

NSString* content2 = string;
NSString* beforeBody = @"&lt;section id=";
NSString* afterBody = @"&lt;/section&gt;";

NSString* finalContent = [[beforeBody stringByAppendingString:content2]
                          stringByAppendingString: afterBody];

[_webView loadHTMLString:finalContent baseURL:nil];
</code></pre>

<p>but it didn't work for me. Any ideas? Thank you for help!</p>