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
<bodytext><![CDATA[visit the website <a href="http://www.site.com">clicktext</a>]]></bodytext>
and should display;
visit the website clicktext
but displays;
visit the website clicktext
Anybody any idea?
The code generating the html text field seems to work ok (it creates “arial font”), that specifc part goes;
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.