Double quotes breaking jQuery (Very simple)
<pre><code>    &lt;?

    //SQL SELECT HERE

    $result = mysql_query($sql);

    $options = '';
    while ($row = mysql_fetch_array($result)) {
        $options .= '&lt;option&gt;Data: ' . $row['data'] .'&lt;/option&gt;';
    }
    ?&gt;
    $("#multiSelect").html("&lt;?=$options?&gt;");
</code></pre>

<p>The above is a PHP query inlined in a javascript function.  It's goal is to populate a multiselect.  The issue is that when $row['data'] contains something with double quotes jQuery doesn't like it and complains.  When I remove the row containing double quotes it works fine.</p>

<p>How can I get around this?  Is this normal behavior of jQuery.</p>
