TextConverter.importToFlow() - HTML with Superscript
I need to create a TextFlow instance from generic HTML text with a reduced subset of possible tags, being <p>, <b>, <u>, <i>, <a>, <sup> and <sub>.
The problem is the conversion of sub and sup tags. Simply importing the HTML text with
TextConverter.importToFlow(htmlText, TextConverter.TEXT_FIELD_HTML_FORMAT);
results in sup and sub tags being ignored, as they are not supported by TEXT_FIELD_HTML_FORMAT.
Do you have any idea how to get the sup and sup content converted to spans with appropriate baselineshift?
Be aware that inside sup and sup elements may contains <b>, <i> and <u> tags as they are inline elements!
