From d3245b6b9b3050b29233fbf31ec134cbb6c65940 Mon Sep 17 00:00:00 2001 From: ianb Date: Sat, 7 May 2005 03:07:55 +0000 Subject: Use
 for output

---
 examples/console/web/static/command.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to 'examples')

diff --git a/examples/console/web/static/command.js b/examples/console/web/static/command.js
index 5b592fd..37c7075 100644
--- a/examples/console/web/static/command.js
+++ b/examples/console/web/static/command.js
@@ -14,12 +14,16 @@ function send_command() {
   command_long.value = '';
   var result = servlet.run(command);
   var output_div = document.getElementById('output');
-  output_html += '
\n' + '' - + command + ''; - if (result != nil) { - output_html += '
\n' + '' - + result + ''; + output_html += '>>> ' + + html_quote(command) + '\n'; + if (result != null) { + output_html += '' + + html_quote(result) + '\n'; } output_div.innerHTML = output_html; return false; } + +function html_quote(s) { + return s.replace('&', '&').replace('<', '<'); +} -- cgit v1.2.1