Escaping characters in jQuery
<p>I've googled and I've checked stackoverflow for an answer, but yet I haven't found a proper one. My input regularly contains <code>&amp;</code> (ampersand) and <code>@</code> so I would need to escape that variable CN99, how can i do this with jquery?</p>

<pre><code>$("#CompanyNameFilter").focus(function() {
    var CN99 = $("#CompanyNameFilter").val();

    $.ajax({
        url: "clients.php?companyname=" + CN99,
        dataType: "html",
        success: function(html) {
            var div = $("#companyList", $(html)).addClass("done");
            $("#companyList").html(div);
        }
    });

});
</code></pre>
