mirror of
https://github.com/vale981/highlight-lisp
synced 2025-03-06 01:31:41 -05:00
Merge pull request #5 from Shinmera/master
Minor fix to conform with XHTML.
This commit is contained in:
commit
64c9e0a17a
1 changed files with 3 additions and 0 deletions
|
@ -394,6 +394,9 @@ var highlight_lisp = function() {
|
||||||
// unpad HTML string
|
// unpad HTML string
|
||||||
html = html.replace(/(^\n|\n$)/g, '');
|
html = html.replace(/(^\n|\n$)/g, '');
|
||||||
html = html.replace(/<(?!\/?span)/g, '<');
|
html = html.replace(/<(?!\/?span)/g, '<');
|
||||||
|
// Re-encode stray &s to conform with XHTML
|
||||||
|
html = html.replace(/&/g, '&');
|
||||||
|
|
||||||
code_el.innerHTML = html;
|
code_el.innerHTML = html;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue