Below information pertains to OpenFL 8.9.6. There seems to be a bug in the HTML parser of the TextField class. If you assign the following string to the htmlText field of a class instance:
'<b><font color="#FF0000">red_string</font></b>regular_string<b><font color="#0000FF">blue_string</font></b>'
the result will be:
whereas the correct result must be:
In order to fix the problem, the highlighted code should be removed from HTMLParser.hx:
However, I’m not 100% certain what was the purpose of those lines according to the author, therefore it would be great if the author double checked this solution to make sure it does not introduce problems in other scenarios.