google-code-prettify handles HTML escapes in code blocks by 'prettifying' the escape characters themselves, rather the escaped sequence. For example the:
original HTML <code class="prettyprint lang-sql"> ... > ... </code>
gets prettified into:
<span class="pun">&</span><span class="pln">gt</span><span class="pun">;</span>
with obvious wrong rendering. I can't return unescaped HTML inside <code>
as is not from trusted source and can be used as an XSS vector.
My question is if there is is any way to coerce google-pretty-print into doing the right thing and consider the content of <code>
as HTML (escaped), not as raw text.