diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-25 18:18:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-25 18:18:52 -0700 |
commit | c0850d6cf35dc4d3ec7acd71569b44900e66eb81 (patch) | |
tree | 0372671f3ad1b62966e322465339f540c71f733c /src/shell.html | |
parent | 9b507f6327c3e268e120e1fcdf45b650e72c1fdb (diff) |
update shell.html output for textarea
Diffstat (limited to 'src/shell.html')
-rw-r--r-- | src/shell.html | 9 |
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, "&"); - text = text.replace(/</g, "<"); - text = text.replace(/>/g, ">"); - text = text.replace('\n', '<br>', 'g'); + // These replacements are necessary if you render to raw HTML + //text = text.replace(/&/g, "&"); + //text = text.replace(/</g, "<"); + //text = text.replace(/>/g, ">"); + //text = text.replace('\n', '<br>', 'g'); element.value += text + "\n"; }; })(), |