Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the proper way to escape characters in Flash when using XML?

characters escape Flash XML
0
Posted

What is the proper way to escape characters in Flash when using XML?

0

Its important to realize that you need to escape, or encode, certain characters when placing them in your XML. As youve seen already, you can use CDATA to pull this string data in directly, or you can avoid that by using charCodes. These are strings that represent characters and follow the format of < (this would display the < character). You can determine the proper charCode for any symbol or letter (especially useful for foreign letters and symbols) by using the following code: charTest = <; trace (chartest.charCodeAt(0)); This will output the value 60, so the entire charCode for the character < would be <.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123