title: iPhone: How to Display Text from UIWebView HTML Document in a UITextView
body: <p>I have an RSS feed that gets arranged in a UITableView which lets the user select a story that loads in a UIWebView. However, I'd like to stop using the UIWebView and just use a UITextView or UILabel. </p>
  
  <p>This png is what I am trying to do (just display the various text aspects of a news story):</p>
  
  <p><a href="https://i.stack.imgur.com/dBalI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dBalI.png" alt="alt text"></a>
  </p>
  
  <p>I have tried using:</p>
  
  <pre><code>NSString *myText = [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.textContent"];
  </code></pre>
  
  <p>and assigning the string to a UILabel but it doesn't work from where I am implementing it in <code>webViewDidFinishLoad</code> (--is that not the proper place?). I get a blank textView and normal webView. </p>
  
  <p>If I overlay a UITextView on top of a UIWebView on its own (that is, a webView that just loads one page), the code posted above works displays the text fine. The problem arises when I try to process the RSS feed . </p>
  
  <p>I've been stuck wondering why this doesn't work as it should for a few days now. If you have a better, more efficient way of doing it then placing the code in <code>webViewDidFinishLoad</code>, please let me know! Does it go in my <code>didSelectRowAtIndexPath?</code> </p>
  
  <p>Thank you very much in advance!</p>