I have an input string being read from an xml file. The string has a literal \n in it so that when it is written (in an email in this case) it will force a new line.
When I read the xml file (using apache's xerces), and assign the input to a String, the resulting String contains \\n (i.e. it is being escaped for me).
Here's the actual line of code:
So if my xml contains <content>blah blah blah\nblah blah blah</content>, the assignment to my String object is "blah blah blah\\nblah blah blah.
Because the \ is being escaped, the resulting email gets "un-escaped" and shows \n in it instead of recognizing the \n as an escape for "new line"
How do I keep an assignment into a String object from escaping the backslash or do I need to un-escape it manually using a REGEX?