title: How to load html string in a webview?
body: <p>i have a html string containing this:</p>
  
  <pre><code>    &lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"&gt;
      &lt;html&gt;
        &lt;head&gt;
        &lt;meta http-equiv="content-type" content="text/html; charset=windows-1250"&gt;
        &lt;meta name="spanish press" content="spain, spanish newspaper, news,economy,politics,sports"&gt;  
        &lt;title&gt;&lt;/title&gt;
        &lt;/head&gt;
        &lt;body id="body"&gt;  
  &lt;!-- The following code will render a clickable image ad in the page --&gt;
          &lt;script src="http://www.myscript.com/a"&gt;&lt;/script&gt;
        &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>I need to show that website into a webview in android. </p>
  
  <p>I tryed with all this:</p>
  
  <pre><code>webView.loadDataWithBaseURL(null, txt, "text/html", "UTF-8", null);
  webView.loadDataWithBaseURL("x-data://base", txt, "text/html", "UTF-8", null);      
  webView.loadDataWithBaseURL("notreal/", txt, "text/htm", "utf-8",null);
  </code></pre>
  
  <p>Also i tryed removing DOCTYPE tag: </p>
  
  <p><code>txt=txt.replace("&lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"&gt;", "");</code></p>
  
  <p>No one of those have work. I just achieved to show the string into the webview (the html code), but not the website that must be created with that html code.</p>
  
  <p>What is wrong?</p>