Nested Literals
<p>I have an ASP.NET website that is not passing the W3C XHTML validation.</p>

<p>It doesn't pass validation because I place <code>&lt;div&gt;</code> content into a <code>&lt;asp:Label&gt;</code>, and so the resulting markup looks like:</p>

<pre><code>&lt;span&gt;&lt;div&gt;stackoverflow&lt;/div&gt;&lt;/span&gt; &lt;!-- INVALID; DIV INSIDE SPAN --&gt;
</code></pre>

<p>However, after replacing all my <code>&lt;asp:Label&gt;</code> with <code>&lt;asp:Literal&gt;</code>, I get errors that <code>&lt;asp:Literal&gt;</code> cannot be nested inside another <code>&lt;asp:Literal&gt;</code>.</p>

<p>I don't really understand how I'm suppose to be solving this, since <code>&lt;asp:Literal&gt;</code> sounds like it would have otherwise been exactly what I wanted.</p>

<p>Is the correct solution to use <code>&lt;asp:PlaceHolder&gt;</code>?</p>
