title: How to escape all non alphanumeric charcters using JavaScript?
body: <p>I need to escape all the non alpha numeric charters using java script, i.e i need to backslash them.</p>
  
  <p>Ex : In python re.escape would add back slash to non alphanumeric characters.</p>
  
  <p>Is there any function to do the needful?</p>