title: How to put HTML code into a .resx resource file?
body: <p>Strange, that no one asked this before....</p>
  
  <p>I am creating templated HTML emails for 4 languages. I want to put the HTML templates into my .resx files to have easy, internationalized access to them from code. Like so:</p>
  
  <p>.resx file:</p>
  
  <pre><code>&lt;data name="BodyTemplate" xml:space="preserve"&gt;
      &lt;value&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
          &lt;html&gt;
          &lt;head&gt;
              &lt;meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"&gt;
              &lt;title&gt;Title&lt;/title&gt;
              ...
          &lt;/body&gt;
          &lt;/html&gt;
      &lt;/value&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>But, obviously, the compiler complains about the HTML inside the .resx file. <strong>Is there a way to use HTML (or XML at all) in .resx files. How?</strong></p>
  
  <p>I am using .NET version 4 and dotLiquid as templating Engine, if that matters.</p>