How to use line breaks in Flex with PHP string
问题 This is the MXML I have <mx:Text id="name" styleName="textStyle" maxWidth="400"></mx:Text> Then in the same file I have : <mx:Script> <![CDATA[ private function init():void { name.text = data.string; } ]]> </mx:Script> data.string comes from the DB and it contains this : "This is a string \n with two lines." I also tried this : "This is a string
with two lines." None of them create a new line in flex they are both rendered to the screen as \n and
. How can I create a new line with a