# htmlText not displaying correctly

**URL:** <https://forum.kirupa.com/t/htmltext-not-displaying-correctly/284875>\
**Category:** flash\
**Created:** [March 24, 2009, 4:59pm UTC](https://forum.kirupa.com/t/htmltext-not-displaying-correctly/284875 "2009-03-24T16:59:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bortiquai](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@bortiquai](https://forum.kirupa.com/u/bortiquai)\
**Post date:** [March 24, 2009, 4:59pm UTC](https://forum.kirupa.com/t/htmltext-not-displaying-correctly/284875/1 "2009-03-24T16:59:50Z")

</div>

I have a simple class which contains a TextField. The textfield is populated with data from an XML file.

i am using the code:

txtField.htmlText = xmlElement.node.node.text();  
txtField.setTextFormat(txtFmt);

If i don’t use any HTML tags, it displays fine. But if I add tags, such as \<a\> or \<b\>, etc… the text within the tags does not display. For example, if in the XML text i have:

\<node\>For more information, \<a href=’[[COLOR=#0000ff]http://www.link.com’\>Click[/COLOR]](http://www.link.com'%3eclick/) Here\</a\> to see the information.  
When I run the flash move, it displays:  
For more informationto see the information.

If i remove the \<a\> tags, it displays fine.  
Thanks
