/ Published in: ActionScript 3
                    
                                        
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.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// In your XML, change \n to \\n.
yourXMLString = yourXMLString.split("\\n").join("\n");
Comments
 Subscribe to comments
                    Subscribe to comments
                
                