public RTHtml<RTImage,RTAudio,RTVideo> convert(final Spanned text,RTFormat.Html rtFormat){
  mText=text;
  mRTFormat=rtFormat;
  mOut=new StringBuilder();
  mImages=new ArrayList<>();
  mParagraphStyles.clear();
  convertParagraphs();
  return new RTHtml<>(rtFormat,mOut.toString(),mImages);
}

public RTHtml < RTImage , RTAudio , RTVideo > convert ( final Spanned text , RTFormat . Html rtFormat ) { mText = text ; mRTFormat = rtFormat ; mOut = new StringBuilder ( ) ; mImages = new ArrayList < > ( ) ; mParagraphStyles . clear ( ) ; convertParagraphs ( ) ; return new RTHtml < > ( rtFormat , mOut . toString ( ) , mImages ) ; }
converts a spanned text to html
