title: Twig : escaping simplequote for js
body: <p>I'm workin on a framework (not symfony) that includes twig as templating system
  I'm trying to escape simplequotes on a var to be called in a google analytics func :</p>
  
  <pre><code>&lt;a href="#" onClick="_gaq.push(['_trackEvent', '{{departement}}','{{Article.title|escape('js')}}', 'Partager']);"&gt;Partager&lt;/a&gt;
  </code></pre>
  
  <p>The following code don't escapte correctly simplequote on Article.title, the input</p>
  
  <p>"Lorem' ipsum"</p>
  
  <p>gives in this template</p>
  
  <p>"Lorem'0 ipsum"</p>
  
  <p>I converted the controller to UTF-8 without BOM, and it don't solve the problem.</p>