title: Getting the selected text of a UIWebView
body: <p>I'm trying to access the currently selected text in a <code>UIWebView</code> using the following line of code:</p>
  
  <pre><code>NSString *highlighted = [_webView stringByEvaluatingJavaScriptFromString:@"window.getSelection();"];
  </code></pre>
  
  <p>But it only returns an emtpy string. Any ideas about what I'm missing?</p>