XML ampersand
- Started
- Last post
- 7 Responses
- emmaopeel
I am new to using XML in flash... I am pulling in text from an XML file and my "&" are reading "amp;"
I tried using html symbol code "&" in the xml, and got the same "amp;" result.
Any suggestions, commands/functions/special symbol codes I should know? Can I tell Flash to read symbols such as & and m-dashes somehow?
thanks!
- smellvetica0
you need to use C-DATA
- JamesEngage0
%26
- smellvetica0
^ that man knows.
- enobrev0
also, be sure to use unescape() on your incoming data.
- JamesEngage0
I guessed...
- emmaopeel0
is this an oddity?
by changing
"newsTitle.text ="
to
"newsTitle.htmlText ="I can now read ampersands from my xml document...
thanks for the help!
- jkosoy0
not an oddity.
.htmlText simply supports HTML formatting that .text doesn't & is included in this.
I found this old Flash 5 Technote that discusses it. Might be juuuust a tinsy dated but it'll give you the jiist.