title: Inserting HTML formatted (not a resource) string in android TextView
body: <p>I need to plug an HTML formatted string into a <code>TextView</code>. I'm retrieving the text from a database and when I insert it using this code</p>
  
  <pre><code>WebView webview = (WebView) view.findViewById(R.id.webView);
  text = "&lt;html&gt;&lt;body&gt;" + {text retrieved form database} + "&lt;/body&gt;&lt;/html&gt;"
  webview.loadData(text, "text/html", "utf-8");
  </code></pre>
  
  <p>It works but this code </p>
  
  <pre><code> TextView output = (TextView) view.findViewById(R.id.simple_text);
   output.setText(Html.fromHtml(text));
  </code></pre>
  
  <p>strips out all HTML formatting.</p>
  
  <p>What is the right way to do this?</p>