# HTML Formatting within XML

**URL:** <https://forum.kirupa.com/t/html-formatting-within-xml/197579>\
**Category:** programming\
**Created:** [August 17, 2006, 3:16pm UTC](https://forum.kirupa.com/t/html-formatting-within-xml/197579 "2006-08-17T15:16:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![squireglig](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@squireglig](https://forum.kirupa.com/u/squireglig)\
**Post date:** [August 17, 2006, 3:16pm UTC](https://forum.kirupa.com/t/html-formatting-within-xml/197579/1 "2006-08-17T15:16:37Z")

</div>

Hi everyone,

Basically, my problem has been mentioned in this forum lots, but the solutions don’t seem to be working for me.

What I have is an XML file being pulled into flash and placed in an array, then the data is put into a dynamic text box. The XML contains some HTML formatting I want to include (\<B\> and \<I\> tags).

The problem is when the HTML comes in, the dynamic text box displays it like \<b\>bolded text\</b\> rather than actually bolding it.

I have used CDATA in my XML,

```auto
<topic title="Science"><![CDATA[- Austrian monk <b>Gregor</b> Mendel begins his studies of variation.]]></topic>

```

as well as trying to use character codes (&x#60; etc (the x is there so it doesnt parse)), and a combination of both, but neither seem to work.

When I set the html property to false for my textbox, i get the “\<” and “\>” symbols coming in as the html codes of \< and \>. I think this may be the problem, as the htmlText is displaying \<b\> rather than \<b\>.

The input to the textbox is set with the .htmlText property as well.

Any help would be appreciated!
