1
2
3
4
function fixXMLNewLines(str:String):String{
    var new_str:String = str.split("\\n").join("\n");
    return new_str;
}