# Xml node link word in text

**URL:** <https://forum.kirupa.com/t/xml-node-link-word-in-text/287090>\
**Category:** Uncategorized\
**Created:** [April 26, 2009, 12:17am UTC](https://forum.kirupa.com/t/xml-node-link-word-in-text/287090 "2009-04-26T00:17:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickjv](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@patrickjv](https://forum.kirupa.com/u/patrickjv)\
**Post date:** [April 26, 2009, 12:17am UTC](https://forum.kirupa.com/t/xml-node-link-word-in-text/287090/1 "2009-04-26T00:17:40Z")

</div>

I have a text properly read in from xml and displaying ok. But I’m trying to implement a link on one word in the text and that doesn’t work. the xml node is

```auto
<bodytext><![CDATA[visit the website <a href="http://www.site.com">clicktext</a>]]></bodytext>

```

and should display;

visit the website [clicktext](http://www.site.com)

but displays;

visit the website [clicktext](http://www.site.com)

Anybody any idea?  
The code generating the html text field seems to work ok (it creates “arial font”), that specifc part goes;

```auto
 this.createTextField("headline_txt"+depth,this.getNextHighestDepth(),0,h,400,20);
 this["headline_txt"+depth].html = true;
 this["headline_txt"+depth].autoSize = "left";
 this["headline_txt"+depth].multiline = true;
 this["headline_txt"+depth].wordWrap = true;
 this["headline_txt"+depth].htmlText = '<font face="Arial, Helvetica, sans-serif">'+_parent._parent._parent._parent._parent._parent.xmldata[2][j-1]+'</font>';

```

Anybody any clue how to escape the html link code being displayed literally? Tried \< and \> for \< \> but then it displayed those literally

t.i.a.  
P.
