title: erratic behaviour of "\" while storing in DB
body: <p>I am saving some texts containing <code>"\"</code> in database and <code>"\"</code> is getting stored as <code>&amp;amp;#92;</code>, <code>&amp;#92</code>  and sometimes as <code>\</code> itself.</p>
  
  <p>Example:
  <code>"ABC \n\r DEF"</code> might be stored as </p>
  
  <ol>
  <li><code>"ABC &amp;#92;n&amp;#92;r DEF"</code>    or</li>
  <li><code>"ABC &amp;amp;#92;n&amp;amp;#92;r DEF"</code> or</li>
  <li><code>"ABC \n\r DEF"</code></li>
  </ol>
  
  <p>I am not able to find out why data is stored like this in DB. Please help me out in finding out the  root cause for this erratic behaviour. :
  (Character Encoding :UTF-8)</p>
  
  <p>The values(with special characters) which i am storing in database are parsed from xml.
  Using getNodeValue() i am fetching the value of that node. 
  Node is having proper value (ABC \n\r DEF).</p>
  
  <p>While parsing the node , will getNodeValue()  escapes the special characters?</p>