View Single Post

#1
Bookmark and Share!
(AS2) XML - convert < to read as HTML
Old 2009-03-25

Hi,
I'm bringing in some XML from a PHP generated page. unfortunately they PHP generates the XML as follows:

Code:
<moreInfo>&lt;b&gt;Abstract Painting&lt;/b&gt;&lt;br /&gt;1963&lt;br /&gt;170.00 x 215.00
 cm&lt;br /&gt;Oil on canvas&lt;</moreInfo>
Rather than processing and reading the data as HTML, flash will print this out as html:

Code:
<b>Abstract Painting</b><br />1963<br />170.00 x 215.00 cm<br />Oil on canvas<br />
I'm using AS2, a HTML enabled text field and i've tried the unescape/escape function. It looks like unescape will only work on hexadecimal data.

Any ideas on how to get flash to read this as html?

Cheers,
Luke.
postbit arrow 4 comments | 1491 views postbit arrow Reply: with Quote   
Luke-F
Registered User
Luke-F is offline
seperator
Posts: 21
2005-08-01
Luke-F's Avatar
seperator

Ultrashock Member Comments: