Skip to main content
2 of 3
edited tags
balpha StaffMod
  • 158.9k
  • 45
  • 506
  • 679

Display error when nesting <pre/> in <code/> elements

I have found an issue in this question: How to get list of values in GROUP_BY clause?

Check this out. I enter the following piece of HTML:

<code><pre>hello</pre></code>

It is rendered as such:

hello

When I check the rendered HTML in my browser, what I get is this:

<p><code></code></p>
<pre><code>hello</code></pre>

So some extra <code/> element and paragraph are rendered.

Lukas Eder
  • 3.4k
  • 19
  • 27