Return to Snippet

Revision: 33249
at July 2, 2011 00:36 by heathbo


Updated Code
// In your XML, change \n to \\n.

yourXMLString = yourXMLString.split("\\n").join("\n");

Revision: 33248
at October 7, 2010 05:35 by heathbo


Initial Code
yourXMLString = yourXMLString.split("\\n").join("\n");

Initial URL


Initial Description
For some reason if you load in text from an xml file and the text has a newline character(\n or \r), the newline character doesn't create a new line but shows up in the text instead.

Initial Title
XML, string, and the missing new line  issue

Initial Tags


Initial Language
ActionScript 3