HTML text importing problem
HI all,
I want to display a html text. All we need is the bullet function and the line break. Unfortunately I just cannot display any html text properly.
The string comes from an XML basically, but I tried without the xml thing as well.
var _text:String = "<html><body><span>first line of text, <i>this is italic</i> and <a href='cnn.com'>a link to cnn</a>, 2nd line of text.</span></body></html>";
_flow = TextConverter.importToFlow( _text, TextConverter.HTML_FORMAT);
_flow.fontLookup = FontLookup.DEVICE;
_flow.renderingMode = RenderingMode.NORMAL;
_flow.fontFamily = "Arial";
Result: It shows all the tags
I tried also:
_flow = TextConverter.importToFlow( _text, TextConverter.HTML_FORMAT, ConversionType.XML_TYPE as IConfiguration);
or
_flow = TextConverter.importToFlow( _text, TextConverter.HTML_FORMAT, ConversionType.STRING_TYPE as IConfiguration);
but dont help.
Any ideas?
In addition, I tried with nightly builds, but the HTML_FORMAT disappeard from the list of options.
Thanks!
