title: How to avoid html encoding of strings in partial view
body: <p>My goal is to separate js controls into partial views and parametrize them through ViewData. I want to pass a string in ViewData that is used as javascript string value.</p>
  
  <p>Now the problem is that I don't know how to render a string that is not html encoded.</p>
  
  <p>My current attempt is:</p>
  
  <pre><code>var domAsString = "&lt;%: HttpUtility.HtmlDecode((string)ViewData["domLayout"]) %&gt;"
  </code></pre>
  
  <p>Which renders it as a html-encoded string. How can I avoid this?</p>