title: How to strip slashes in Javascript (json)? Any JQuery plugin?
body: <p>So, when I save the data into database, PHP will add a \  on single or double quotes.  That is good.</p>
  
  <p><strong>However, when data is passed back to the client using json_encode();  TEXT like McDonald's is STORED as McDonald's in the DB but once passed back from PHP to js, it will be encoded as McDonald\'s</strong></p>
  
  <p>Since I'm using jQuery, is there any plugin to easily do that? or any function I should use to strip the slashes correctly?  obviously, if there is case like  <code>\\\\s</code>, the function should return <code>\s</code>.  :)</p>
  
  <p><strong>Sorry guys. I think I made my question too complicated.  How about I make it simpler..</strong></p>
  
  <p>If I have a javascript variable:</p>
  
  <pre><code>var abc = "McDonald\'s";
  var bcd = "I need a slash \\ ";
  var cde = "save the double quote \"";
  </code></pre>
  
  <p>how can I strip the \' ?  what the regex I should use?</p>