Highlight.js renders HTML without Tags

Viewed 15

my highlight.js is working fine with php and other languages...only html is giving me headaches.

this is the html code i deliver

<pre>
    <code class="language-html">


<body>
  <p checked class="title" id='title'>Title</p>
  <!-- here goes the rest of the page -->
</body>
</code>
</pre>

and this is the result i get (with a lot of whitespace) there are however no errors in the browser and other languages works just fine....

<pre>    <code class="language-html hljs language-xml">



  Title
  





    </code></pre>
0 Answers
Related