title: Apostrophe converted into & # 039 ; in twig
body: <p>This question has been asked before here:</p>
  
  <p><a href="https://stackoverflow.com/questions/10631183/symfony2-and-zclip-apostrophe-turn-into-0-3-9">Question</a></p>
  
  <p><strong>But it doesn't solve my problem.</strong></p>
  
  <p>After I got data from database with apostrophe, I'm putting it inside a text input using</p>
  
  <pre><code>c_name='{{company_name}}';
  $("#company_name").val(c_name);
  </code></pre>
  
  <p>It's giving result like</p>
  
  <blockquote>
    <p>some Hatchery &amp; Shrimp &amp; #039;s Culture ltd.</p>
  </blockquote>
  
  <p>So I applied the solution of that question like</p>
  
  <pre><code>c_name='{{company_name|raw}}';
  $("#company_name").val(c_name);
  </code></pre>
  
  <p>It's giving me an error like</p>
  
  <pre><code>SyntaxError: missing ; before statement 
  c_name='some Hatchery &amp; Shrimp's Culture ltd.';
  </code></pre>
  
  <p>Showing error just after the Shrimp' and before s.
  Obviously string ended before it actually ends and expecting a ;</p>
  
  <p>So I tried again with</p>
  
  <pre><code>c_name={{company_name|raw}};
  
  SyntaxError: missing ; before statement
  c_name=some Hatchery &amp; Shrimp's Culture ltd.;
  </code></pre>
  
  <p>Now it's showing error just after the first white space,in this case before 'H'</p>
  
  <p><strong>My question is how can I handle apostrophe in twig?</strong> '|raw' is causing problem for me. </p>