title: JavaScript String Handling
body: <p>I am passing a php value to javascript using onclick method, so it kind of looks like this </p>
  
  <pre><code>onclick="(method('&lt;?php echo $variable; ?&gt;'))"
  </code></pre>
  
  <p>But my problem is one of my values are "Ike's" , it contains a single qoute, which breaks the code. Any way in javascript to complete consider a passed parameter as a string,not anything else?
  thanks</p>