Link to home
Start Free TrialLog in
Avatar of RTKHOT
RTKHOTFlag for India

asked on

html formatting not appearing

i am creating a website in flash MX which reads data from an xml file. the xml file contains a list of news article titles. the problem i face is this:-

some of the news articles have html formatting tags in them (like <br>, <u>, <a href> etc.) except for the underline tag, none of the other html tags work. the bold and italic tags appear as actual text. the anchor tag does not show at all. what should i do?
ASKER CERTIFIED SOLUTION
Avatar of blue-genie
blue-genie
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ssdesign
ssdesign

can yuo give an example of your XML?
Avatar of RTKHOT

ASKER

<News_Content>&lt;B&gt;Philadelphia, PA, September 22, 2003 &lt;/B&gt;</News_Content>

this is just an example. i also have italic, and anchor elements emebedded. i tried substituting the &lt; with the xml code (&#60;b&#62;) and also directly as <b>. all 3 did not work.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
var node:XML = new XML("<B><A href='dsd'>test</A></B>");
trace(node.firstChild.toString());

nisha.htmlText = node.firstChild.toString()
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just Remove the CDATA..(Character formatting Tag)