Merge pull request #5 from Shinmera/master

Minor fix to conform with XHTML.
This commit is contained in:
andrew lyon 2014-09-26 10:17:36 -07:00
commit 64c9e0a17a

View file

@ -394,6 +394,9 @@ var highlight_lisp = function() {
// unpad HTML string
html = html.replace(/(^\n|\n$)/g, '');
html = html.replace(/<(?!\/?span)/g, '&lt;');
// Re-encode stray &s to conform with XHTML
html = html.replace(/&/g, '&amp;');
code_el.innerHTML = html;
},