title: HTML Encoding Strings - ASP.NET Web Forms VS Razor View Engine
body: <p>I'm not quite sure how this works yet... trying to find documentation.</p>
  
  <p>In my existing app I've got two different ways of rendering strings in my View</p>
  
  <pre><code>&lt;%: model.something %&gt;
  &lt;!-- or --&gt;
  &lt;%= model.something %&gt;
  </code></pre>
  
  <p>The first one is html encoded, and the second one is not.</p>
  
  <p>Is there something similarly short in Razor?  All I can find is this, which is the encoded version.</p>
  
  <pre class="lang-csharp prettyprint-override"><code>@model.something
  </code></pre>