4 Replies Latest reply: Dec 13, 2013 9:54 AM by Flex harUI RSS

    Format string when get from database

    ndt.company Community Member

      Hi all,

       

      I have problem when display string which get form database.

      Below is code sample for this problem :

      var str:String = "Here is the first sentence. \n And here is the second sentence"

      ...

      <s:Label   text="{str}"/>

       

       

      => the out put will :

          Here is the first sentence.

          And here is the second sentence

       

      but when I get that string from SQL database, the out put is : Here is the first sentence. \n And here is the second sentence

      it don't make new line when see "\n" character.

       

      Hopefully, someone can help me.

       

      Thanks and sorry for my bad english.