I am getting following html string in webservice response :-
NSString *str=@"<div class="ProductDescription"><h3><span style="font-size: large;">kjdhfdsghfjsdjgf</span></h3></div>";
[webview loadHTMLString:str baseURL:nil];
I am using following code for getting length of html string
-(void)webViewDidFinishLoad:(UIWebView *)webView
{
int height=[webView stringByEvaluatingJavaScriptFromString: @"document.getElementByClass(\"ProductDescription\").offsetHeight;"];
}
How could I get the length of above HTML string in webViewDidFinishLoad so that I can set dynamic height for webview?