title: Android - Parse text of Html code und don't parse quotes at attributes
body: <p>I want to parse following code to html code and show in a <code>WebView</code>. This works fine, but...</p>
  <p>Code to parse:</p>
  <pre><code>&lt;img src=&quot;http://...jpeg&quot; alt=&quot;„Indoor Maps“ von Google&quot; align=&quot;left&quot; style=&quot;padding-right:5px&quot;&gt;\n\n\nEinfachere Navigation in Gebäuden verspricht Indoor Maps von Google. Der Praxis-Test von COMPUTER BILD im Hamburger „Alsterhaus“ verlief aber kurios.&lt;br&gt;Foto: ComputerBILD&lt;br&gt;
  </code></pre>
  <p>attempt 1) <code>Html.toHtml(Code)</code> - The umlauts and quotes of the texts where parsed fine and the img-tag is still valid (quotes). But some img-attributes were removed, like <code>alt</code> and <code>align</code>. Result:</p>
  <pre><code>&lt;p&gt;&lt;img src=&quot;http://...jpeg&quot;&gt; Einfachere Navigation in Geb&amp;#228;uden verspricht Indoor Maps von Google. Der Praxis-Test von COMPUTER BILD im Hamburger &amp;#8222;Alsterhaus&amp;#8220; verlief aber kurios.&lt;br&gt;\nFoto: ComputerBILD&lt;br&gt;\n&lt;/p&gt;\n
  </code></pre>
  <p>attempt 2) <code>external library: org.apache.commons.lang3.StringEscapeUtils.escapeHtml4(Code)</code> - All umlauts and quotes where parsed. The img-tag is corrupted by parsing the quotes. Now i can't show the image on a <code>WebView</code>. The img-tags where not removed. Result:</p>
  <pre><code>&amp;lt;img src=&amp;quot;http://...jpeg&amp;quot; alt=&amp;quot;&amp;bdquo;Indoor Maps&amp;ldquo; von Google&amp;quot; align=&amp;quot;left&amp;quot; style=&amp;quot;padding-right:5px&amp;quot;&amp;gt;\n\n\nEinfachere Navigation in Geb&amp;auml;uden verspricht Indoor Maps von Google. Der Praxis-Test von COMPUTER BILD im Hamburger &amp;bdquo;Alsterhaus&amp;ldquo; verlief aber kurios.&amp;lt;br&amp;gt;Foto: ComputerBILD&amp;lt;br&amp;gt;
  </code></pre>
  <p>I know there are a lot of posts of this category, but I can't find help to parse the html code and don't &quot;touch&quot; the quotes of attributes. I am stucking.</p>
  <p><strong>EDIT</strong></p>
  <p>This is the full Html code</p>
  <pre><code>    StringBuilder html = new StringBuilder();
      html.append(&quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//W3C//DTD HTML 4.01 Transitional//EN\&quot; \&quot;http://www.w3.org/TR/html4/loose.dtd\&quot;&gt;&quot;);
      html.append(&quot;&lt;html&gt;&quot;);
      html.append(&quot;&lt;head&gt;&quot;);
      html.append(&quot;&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html; charset=ISO-8859-1\&quot;&gt;&quot;);
      html.append(&quot;&lt;title&gt;&lt;/title&gt;&quot;);
      html.append(&quot;&lt;/head&gt;&quot;);
      html.append(&quot;&lt;body bgcolor=\&quot;white\&quot; leftmargin=\&quot;0\&quot; topmargin=\&quot;0\&quot;&gt;&quot;);       
      html.append(CODE AT THE TOP);
      html.append(&quot;&lt;/body&gt;&quot;);
      html.append(&quot;&lt;/html&gt;&quot;);
  </code></pre>
  <p>When I use UTF-8 I got the same result...</p>
  <pre><code>webView.loadData(html.toString(), &quot;text/html&quot;, &quot;iso-8859-1&quot;);
  </code></pre>
  <p>@Christiaan: This is the current result, when i set the unparsed code to <code>WebView</code></p>
  <p><img src="https://i.stack.imgur.com/FP16N.jpg" alt="" /></p>