title: How to convert Spannable String into Html formatted String in Android?
body: <p>I have a spannable string containing bold italics and underlined text ( it may contain more formatted text )
  For Example : - abcdef <strong>dfdfdfdf</strong> <em>dfgdfgfdgf</em> <strong><em>dfgfdgdfgfdfgd</em></strong></p>
  
  <p>I want to convert this string into html formatted text such that, my final output contains tags such that the above string should become </p>
  
  <p>abcdef <b>dfdfdfdf</b> <i>dfgdfgfdgf <b>dfgfdgdfgfdfgd</b></i></p>
  
  <pre><code>TextUtils.htmlEncode
  </code></pre>
  
  <p>is not working.
  Real World Scenario - You view a webpage and when you view its source it contains tags. Similar thing i want here</p>