aboutsummaryrefslogtreecommitdiff
path: root/src/shell.html
diff options
context:
space:
mode:
authorNathan Hammond <github.com@nathanhammond.com>2012-03-07 21:31:08 -0500
committerNathan Hammond <github.com@nathanhammond.com>2012-03-07 21:31:08 -0500
commit8219427f95f5e40e04822e2e2371d7adedc11cdc (patch)
tree426bce3f9f0e3692171f001b4c12fdd3f22a7a87 /src/shell.html
parent1c1e00f1ddf6a816872991e3d10cbfcc38ff5134 (diff)
parent84c9c225258ae9ab77eda0163b1368e95cb55f10 (diff)
Merge with @richardassar's changes.
Diffstat (limited to 'src/shell.html')
-rw-r--r--src/shell.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shell.html b/src/shell.html
index a41086b9..2f34ace3 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -19,6 +19,7 @@
print: (function() {
var element = document.getElementById('output');
return function(text) {
+ text = text.replace(/&/g, "&amp;");
text = text.replace(/</g, "&lt;");
text = text.replace(/>/g, "&gt;");
text = text.replace('\n', '<br>', 'g');