Unusual problem setting newline character in textarea
I have Spark text area which contains the following text:
"text1\ntext2\text3"
Text above is showing as 3 words each on separate line.
text1
text2
text3
Ok
Now i want to stylize text and add background color:
var tmp:String = textArea.text.replace("\n", '</span><br/><span backgroundColor="#B22300">');
textArea.textFlow = spark.utils.TextFlowUtil.importFromString('<span backgroundColor="#B22300">'+tmp+'</span>');
result: it's not working.
So my question is: what am i doing wrong ?
