title: How to preserve javascript in heist template from escaping?
body: <p>I'm using Snap framework with Heist templating engine. The problem is that Heist corrupts javascript code inlined into html:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;alert('hello');&lt;/script&gt; 
  </code></pre>
  
  <p>Transformed into:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;alert(&amp;apos;hello&amp;apos;);&lt;/script&gt;
  </code></pre>
  
  <p>How can I tell Heist to preserve contents of the <code>script</code> tag?</p>
  
  <p><strong>Edit:</strong> I just implemented such splice:</p>
  
  <pre><code>verbatimSplice :: MonadIO m =&gt; Splice m
  verbatimSplice = do
      node &lt;- getParamNode       -- get &lt;script&gt; node
      stopRecursion              -- stop recursive processing of splices
      lift $ liftIO $ print node -- show me the node
      return [node]              -- return &lt;script&gt; as is
  </code></pre>
  
  <p>But binding this splice to script tag does not help. It prints </p>
  
  <pre><code>Element "script" [("type","text/javascript")] [Text "alert('hello');"]
  </code></pre>
  
  <p>so, I think, html entity substitution takes place after running all splices.</p>