title: How to convert new TypefaceSpan("cursive") or custom Typefacespan in html format?
body: <p>I am using SpannableStringBuilder to convert the string data into spannable string and then using Html.toHtml(spannable) to make it in html format.
  Now my problem is, I am not able to convert my TypefaceSpan or custom TypefaceSpan  into html format i.e something like <code>**&lt;p&gt; &lt;font face="cursive"&gt;This is some text!&lt;/font&gt;   &lt;/p&gt;**</code></p>
  
  <pre><code>spannableString = new SpannableStringBuilder(customTxtEditor.getText());
  
  Typeface font = Typeface.createFromAsset(context.getAssets(), fonts/arial.ttf");
  
  spannableString.setSpan(new TypefaceSpan(font.toString()), startSelection, endSelection, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
  </code></pre>
  
  <p>or </p>
  
  <pre><code>spannableString.setSpan(font.getStyle(), startSelection, endSelection, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
  </code></pre>