Special characters triggering jQuery events
<p>I'm having an issue with special characters triggering events in jQuery. I've got a div containing some text, when it's hovered I call a hover function, when it's "unhovered" I call another function. This works fine if I don't have any quotations: ' or " in the div contents, but causes the unhover event to trigger prematurely if those characters are in the div. </p>

<p>That is to say, the unhover event is being called when I'm still mousing over the div. I've tried using htmlentities, htmlspecialchars on the text in the div, but neither seem to help. Any ideas?</p>

<pre><code>$('#elementID').hover(hoverIn, hoverOut);
</code></pre>

<p>EDIT: I should add that the div's contents are being passed to it by php via a TWIG template variable.</p>
