# \[fmx\] paing xml with html tags

**URL:** <https://forum.kirupa.com/t/fmx-paing-xml-with-html-tags/115303>\
**Category:** Uncategorized\
**Created:** [July 7, 2004, 4:27pm UTC](https://forum.kirupa.com/t/fmx-paing-xml-with-html-tags/115303 "2004-07-07T16:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![borispc](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@borispc](https://forum.kirupa.com/u/borispc)\
**Post date:** [July 7, 2004, 4:27pm UTC](https://forum.kirupa.com/t/fmx-paing-xml-with-html-tags/115303/1 "2004-07-07T16:27:06Z")

</div>

Hello!

I am wondering if any of you have encountered this issue before. I still haven’t figured this out. 😱

I have an xml that looks something like this:

[COLOR=DarkOrange]\<data\>  
\<property\>\<name\>\<![CDATA[\<b\>patrick\</b\>jones]]\>\</name\>\</property\>  
\</data\>[/COLOR]

The CDATA avoids flash from breaking that node in two because of the html tag.

When I pass that node text into a dynamic text field in flash (set to render as html) the text is not displayed properly: you literally see [COLOR=DarkOrange]\<b\>patrick\</b\>jones[/COLOR]

if I trace the variable that contains that text to be passed to the text field, it actually displays: [COLOR=DarkOrange]\<b\>patrick\</b\>jones [/COLOR]  
It might have something to do with it. The \< \> signs are written as ampersand plus lt or gt.

HELP anyone!  
Thanks :tb:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2004, 8:25pm UTC](https://forum.kirupa.com/t/fmx-paing-xml-with-html-tags/115303/2 "2004-07-07T20:25:18Z")

</div>

try using unescape()  
for example, if the contents is stored in the variable yourString, do like this:

myTextField.htmlText = unescape(myString);
