I tried to use this library, it worked perfectly fine with css, but its not working with xml,html code.
Tried using all methods, but it is showing output of html instead of showing html code.
Can you please provide any reproducable example? It looks like you don't properly escape HTML.
Here is what I did, please provide a client side html sample in documentation, which we can refer.
Yes, you should escape HTML within <pre><code> block.
Few references:
http://stackoverflow.com/questions/42182/how-to-escape-and-inside-pre-tags
http://www.w3schools.com/HTML/html_entities.asp
Hi,
I know this is an old topic. So, correct me if I am wrong.
I can not do:
<pre><code class="hljs xml">
<h1>test</h1>
</code></pre>
But must do
<pre><code class="hljs xml">
<h1>test</h1>
</code></pre>
@be-codified yes, correct.
Most helpful comment
Hi,
I know this is an old topic. So, correct me if I am wrong.
I can not do:
But must do