title: Single quote escape in JavaScript function parameters
body: <p>I need to escape single quotes in JavaScript function parameters to avoid this:</p>
  
  <pre><code>onclick="Javascript:INSERT_PRODUCT('188267','WILL AND GRACE','32311','L'ANNIVERSARIO DINOZZE ','20101113|04|18|','13/11/2010 0.00.00','CANALE 5  ',this);"
  </code></pre>
  
  <p>But I need to escape them inside a function call since I do not know the values that will be passed (db variables I can't escape from the database).</p>
  
  <p>Is there a function that allows me to do something like the following?</p>
  
  <pre><code>onclick="Javascript:function(escape(param1), escape(param2), escape(param3));"
  </code></pre>