LineBreak / NewLine in Flex Text Control from XML String

Unfortunately the standard way (‘\n’)  of inserting new lines in Flex Text Controls (Label, Text etc) doesn’t work when the string comes from XML.

The magical way to do it is by using ‘
‘ so

Lorem
Ipsum becomes

Lorem
Ipsum

Be Sociable, Share!

Tags: , ,

Leave a Reply