title: How to stop html template from escaping
body: <p>I have an html template where i want to insert some JavaScript code from outside of template itself. In my template data struct i have created a string field <code>JS string</code> and call it with <code>{{.JS}}</code>. The problem is that everything in browser is escaped:</p>
  
  <p>newlines are <code>\n</code></p>
  
  <p><code>&lt;</code> and <code>&gt;</code> are <code>\u003c</code> and <code>\u003e</code></p>
  
  <p><code>"</code> is <code>\"</code></p>
  
  <p>Same symbols inside of a template are fine. If I Print my <code>JS</code> field into console it is also fine. I have seen some similar problems solved by using <code>template.HTML</code> type instead of <code>string</code>. In my case it does not work at all. </p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>The actual context is </p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
      var options = {
          {{.JS}}
      };
  &lt;/script&gt;
  </code></pre>