# HTML in TextField ... out of an XML-file

**URL:** <https://forum.kirupa.com/t/html-in-textfield-out-of-an-xml-file/178422>\
**Category:** flash\
**Created:** [February 10, 2006, 1:15pm UTC](https://forum.kirupa.com/t/html-in-textfield-out-of-an-xml-file/178422 "2006-02-10T13:15:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)\
**Post date:** [February 10, 2006, 1:15pm UTC](https://forum.kirupa.com/t/html-in-textfield-out-of-an-xml-file/178422/1 "2006-02-10T13:15:35Z")

</div>

I’m loading text from an xml-file (that contains html-tags) into a textfield.

If I use the regular html-tags in my xml-file, it will cause the text to be cut off at the point where it encounters the first special character ‘\<’. If I use the corresponding html-code (\<) for the special char, my html will show just fine in my flash. BUT it’s not me who is going to update the xml-file, and even if it were, the proces of replacing every special char with the html-code is too annoying.

Is there ANY way to keep using the regular html-tags in xml, so that the html will show just fine in my textfield? I thought about replacing the characters through actionscript (special char -\> html-code) but that of course makes it display the corresponding character in the textfield, not parsing the html-tags.

Please help me out, it’s driving me nuts! There has got to be a way to do this, right?
