title: How to escape backslash in java-script
body: <pre><code>var name= '&lt;bean:write name="frmUser" property="name" filter="true" /&gt;';
  </code></pre>
  
  <p>When jsp render code then it appears like this</p>
  
  <pre><code>var name = 'Ishwar Lal \';
  </code></pre>
  
  <p>JavaScript shows error on it.</p>
  
  <p>"Ishwar Lal \" is the sample value. I don't know what value will come. But issue appears when back slash come in javascript.</p>