title: htmlentities function in javascript
body: <pre><code>$line=htmlentities(stripslashes($line));
  </code></pre>
  
  <p>This is the normal PHP statement.
  Can anyone tell me the Syntax in javascript to perform the above task through javascript??</p>