2 Replies Latest reply on Apr 15, 2009 7:30 AM by SPGAnne

    external html inside xml causes odd results when loaded into TextArea

    SPGAnne Level 1

      I must be doing something really dumb, so hope someone can help quick.  I have an xml file that looks something like this:

      <data>

           <title>HelloWorld</title>

           <content>Here is some <i>html</i> text I want to assign to a text area.</content>

      </data>

       

      When I read this into my Flex project and assign coontents to var myxml:XML all seems fine until I do this.

      myTextArea.htmlText = myxml.content;  I get italics as I want, but I also get a new line before and after the word "html".  Everytime I add html

      markup it seems to cause a line break.  What am I doing wrong.

       

      Thanks much in advance for anyone who can help!