title: How to escape < and > inside <pre> tags
body: <p>I'm trying to write a blog post which includes a code segment inside a <code>&lt;pre&gt;</code> tag. The code segment includes a generic type and uses <code>&lt;&gt;</code> to define that type. This is what the segment looks like:</p>
  
  <pre><code>&lt;pre&gt;
      PrimeCalc calc = new PrimeCalc();
      Func&lt;int, int&gt; del = calc.GetNextPrime;
  &lt;/pre&gt;
  </code></pre>
  
  <p>The resulting HTML removes the <code>&lt;&gt;</code> and ends up like this:</p>
  
  <pre><code>PrimeCalc calc = new PrimeCalc();
  Func del = calc.GetNextPrime;
  </code></pre>
  
  <p>How do I escape the <code>&lt;&gt;</code> so they show up in the HTML?</p>