# Rendering HTML Text from XML Document

**URL:** <https://forum.kirupa.com/t/rendering-html-text-from-xml-document/279794>\
**Category:** flash\
**Created:** [January 19, 2009, 2:11pm UTC](https://forum.kirupa.com/t/rendering-html-text-from-xml-document/279794 "2009-01-19T14:11:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![e\_owen](https://avatars.discourse-cdn.com/v4/letter/e/df788c/32.png) [@e\_owen](https://forum.kirupa.com/u/e_owen)\
**Post date:** [January 19, 2009, 2:11pm UTC](https://forum.kirupa.com/t/rendering-html-text-from-xml-document/279794/1 "2009-01-19T14:11:28Z")

</div>

I am having trouble rendering text as HTML when brought in through an XML document. The xml node data is set to a string variable and then put in to a text field, on which the ‘Render as HTML’ option is checked. It works fine for all non HTML text so there is no problem with the XML loading, it is purely converting the string to HTML - I have tried unescape as you can see below. Any help greatly appreciated.

In the XML I have the following:

```auto
<DescriptionLeft><![CDATA[text here<br>and here<br><br> and here]]></DescriptionLeft>

```

Then in the AS3 class:

```auto
_mcTextFields.leftColumnTxt.text = unescape(Section.DescriptionLeft);

```

‘Section’ being the parent object which holds the XML data

The text, when traced, is fine and comes through with the \<br\> tags in place but is not rendered as HTML…

Thanks in advance,  
Elliot
