public void setTextHTML(String text) {
   this.setText(
       Html.fromHtml(
           text, imageGetter, null, getContext().getResources().getDisplayMetrics().density));
 }
 // Get and set styled HTML text
 public String getTextHTML() {
   return Html.toHtml(this.getText(), getContext().getResources().getDisplayMetrics().density);
 }