# Loading html text in flash using XML

**URL:** <https://forum.kirupa.com/t/loading-html-text-in-flash-using-xml/192122>\
**Category:** flash\
**Created:** [June 26, 2006, 11:19am UTC](https://forum.kirupa.com/t/loading-html-text-in-flash-using-xml/192122 "2006-06-26T11:19:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seltec](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@seltec](https://forum.kirupa.com/u/seltec)\
**Post date:** [June 26, 2006, 11:19am UTC](https://forum.kirupa.com/t/loading-html-text-in-flash-using-xml/192122/1 "2006-06-26T11:19:53Z")

</div>

Hello,

I know this is a much talked about issue, but I still don’t find a workable solution. What I want to do is show some text with html markup in flash, using a xml file as source. I know I have to encapsulate the (html) text in the CDATA, but when I take a look at my flash, I see the html tags are shown as well. So instead of showing ‘this is a **bold** text’ I get 'this is a \<b\>bold\</b\> text.

I use the following xml:

```auto

<pic type="category">
        <thumb>thumblocation.jpg</thumb>
        <image>imagelocation.jpg</image>
        <title>Picture</title>
        <descr>
            <![CDATA[This is a <b>bold</b> text.]]>
        </descr>
        <download filename="Filename.jpg" filetype="jpg" filesize="0kb">download.jpg</download>
    </pic>

```

In flash, I use the following code:

```auto
PORTFOLIO_descr* = xmlNode.childNodes*.childNodes[3].firstChild;
_root.MCI_wrapper.TXT_descr.html = true;
_root.MCI_wrapper.TXT_descr.wordWrap = true;
_root.MCI_wrapper.TXT_descr.multiline = true;
_root.MCI_wrapper.TXT_descr.htmlText = PORTFOLIO_descr*;

```

When I trace the content of ‘PORTFOLIO\_descr\*’, I can see al the special characters are replaced with their corresponding code (\< becomes \< etc.), should I try and replace them stringwise?

Thank in advance!
