1 Reply Latest reply on Nov 15, 2007 12:13 PM by ntsiii

    HTML inside a XML tag


      I need to put the htmlText of a TextArea inside an XML document like this:


      I know I have to use the <![CDATA[]]> tag, which I have tried to add like this:

      var myHtml:String = "<![CDATA[" + htmlText + "]]>";

      Then use data binding like this:


      However, when I do this, all the "<" and ">" tags are automatically replaced with the entity values &lt; and &gt;

      I also tried the following without success:

      <myTag><![CDATA[{htmlText}]]></myTag> (and without the { })

      Any help will be greatly appreciated!