How to escape ' in setParameter
<p>I have a javascript function which is broken because the ' ('Côte d'Azur') is not escaped:</p>

<p>Javascript:searchDay('month', 'France', 'Côte d'Azur', '0', '201208', '18');</p>

<p>The parameters are set as followed:</p>

<pre><code>$jsUrl = new JavascriptUrl(
        "searchDay",
        array("id", "country", "region", "city" , "month",  "startDay" )
        );      

$jsUrl-&gt;setParameter("id", "month");
$jsUrl-&gt;setParameter('month', $monthCode);
$jsUrl-&gt;setParameter('country', $countryName);
$jsUrl-&gt;setParameter('region', $regionName );
</code></pre>

<p>How can i fix this?</p>
