title: Format html tag to a string java
body: <p>I need help
  I have a string like this </p>
  
  <pre><code>String myString = "The accuracy of a potentiometer (pH meter) is
                     &amp;#177;0.1 mV. A solution contains 1x10&lt;SUP&gt;-4&lt;\/SUP&gt; mol\/L Cl
                     &lt;SUP&gt;-&lt;\/SUP&gt; and 1x10&lt;SUP&gt;-3&lt;\/SUP&gt; mol\/L Ca&lt;SUP&gt;2+&lt;\/SUP&gt;. 
                     What is the error in concentration to be expected when measuring
                     these ions with a chloride or a calcium ion selective electrode? 
                     &lt;TABLE BORDER=0 ALIGN=CENTER&gt; &lt;TR&gt;&lt;TD&gt;    &lt;\/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;\/TD&gt;&lt;TD&gt;
                     &lt;\/TD&gt;&lt;\/TR&gt;&lt;\/TABLE&gt;";
  </code></pre>
  
  <p>I have to show this string in a listView but obviously when I print it there are these html tags. </p>
  
  <p>I already tried to get rid of the tags but if so I lost informations (like -4 as superscipt). 
  I'd like to know if it is possible to format the string in a proper way.</p>
  
  <p>Thanks</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I have partially solved by using Html.fromHtml(String)</p>
  
  <pre><code>public String processString(String html) {
      Spanned spanned;
      if (android.os.Build.VERSION.SDK_INT &gt;= android.os.Build.VERSION_CODES.N) {
          spanned = Html.fromHtml(html, Html.FROM_HTML_MODE_LEGACY);
      } else {
          spanned = Html.fromHtml(html);
      }
      return spanned.toString();
  }
  </code></pre>
  
  <p>Now the problem is that the  tag is displayed like an obj icon
  <a href="https://i.stack.imgur.com/itvF1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/itvF1.png" alt="image"></a> 
  and i don't know how to visualize them.</p>
  
  <p>Is it possible?</p>