title: Prevent Play template engine from escaping JavaScript quotation marks
body: <p>I want to include a Facebook post using a template from the Play framework. The Problem is that, even though <code>@Html</code> should not escape HTML entities, they get escaped. As a result <code>"</code> turns into <code>&amp;quot;</code> and the script is not evaluated.</p>
  
  <p><strong>Embed-Code</strong> </p>
  
  <pre><code>post = "&lt;div id="fb-root"&gt;&lt;/div&gt; 
  &lt;script&gt;
    (function(d, s, id) { 
      var js, fjs = d.getElementsByTagName(s)[0]; 
      if (d.getElementById(id)) return; 
      js = d.createElement(s); 
      js.id = id; 
      js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1"; 
      fjs.parentNode.insertBefore(js, fjs); 
     }(document, 'script', 'facebook-jssdk'));
  &lt;/script&gt;
  &lt;div class="fb-post" data-href="https://www.facebook.com/FacebookDevelopers/posts/10151945402933553" data-width="466"&gt;
    &lt;div class="fb-xfbml-parse-ignore"&gt;
      &lt;a href="https://www.facebook.com/FacebookDevelopers/posts/10151945402933553"&gt;Beitrag&lt;/a&gt; von &lt;a href="https://www.facebook.com/FacebookDevelopers"&gt;Facebook Developers&lt;/a&gt;.
    &lt;/div&gt;
  &lt;/div&gt;"`
  </code></pre>
  
  <p><strong>Template</strong> <code>@Html(post)</code></p>
  
  <p><strong>Output</strong> </p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt; 
  &lt;script&gt;
    (function(d, s, id) { 
        var js, fjs = d.getElementsByTagName(s)[0]; 
        if (d.getElementById(id)) return; 
        js = d.createElement(s); 
        js.id = id; 
        js.src = &amp;quot;//connect.facebook.net/de_DE/all.js#xfbml=1&amp;quot;;
        fjs.parentNode.insertBefore(js, fjs);
      }(document, &amp;apos;script&amp;apos;, &amp;apos;facebook-jssdk&amp;apos;));
  &lt;/script&gt;
  &lt;div class="fb-post"; data-href="https://www.facebook.com/FacebookDevelopers/posts/10151945402933553" data-width="466"&gt;
     &lt;div class="fb-xfbml-parse-ignore"&gt;
       &lt;a href="https://www.facebook.com/FacebookDevelopers/posts/10151945402933553"&gt;Beitrag&lt;/a&gt; von &lt;a href="https://www.facebook.com/FacebookDevelopers"&gt;Facebook Developers&lt;/a&gt;.
     &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>I'm really stuck, because <code>@Html()</code> is not doing what it's supposed to do <a href="http://www.playframework.com/documentation/2.2.0-M1/ScalaTemplates" rel="nofollow">according to the doc</a>.</p>