aboutsummaryrefslogtreecommitdiff
path: root/src/shell.html
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-25 18:18:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-25 18:18:52 -0700
commitc0850d6cf35dc4d3ec7acd71569b44900e66eb81 (patch)
tree0372671f3ad1b62966e322465339f540c71f733c /src/shell.html
parent9b507f6327c3e268e120e1fcdf45b650e72c1fdb (diff)
update shell.html output for textarea
Diffstat (limited to 'src/shell.html')
-rw-r--r--src/shell.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/shell.html b/src/shell.html
index ac86e5e0..50f4f012 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -17,10 +17,11 @@
var element = document.getElementById('output');
element.value = ''; // clear browser cache
return function(text) {
- text = text.replace(/&/g, "&amp;");
- text = text.replace(/</g, "&lt;");
- text = text.replace(/>/g, "&gt;");
- text = text.replace('\n', '<br>', 'g');
+ // These replacements are necessary if you render to raw HTML
+ //text = text.replace(/&/g, "&amp;");
+ //text = text.replace(/</g, "&lt;");
+ //text = text.replace(/>/g, "&gt;");
+ //text = text.replace('\n', '<br>', 'g');
element.value += text + "\n";
};
})(),