Commit f52bcffb authored by Thomas Park's avatar Thomas Park
Browse files

escape HTML entities in source viewer

parent 2606e146
......@@ -32,6 +32,12 @@
});
function cleanSource(html) {
html = html.replace(/×/g, "&close;")
.replace(/«/g, "«")
.replace(/»/g, "»")
.replace(/←/g, "←")
.replace(/→/g, "→");
var lines = html.split(/\n/);
lines.shift();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment