summaryrefslogtreecommitdiff
path: root/jslib/urweb.js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-01-08 10:30:14 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-01-08 10:30:14 -0500
commita1aa2b791511e172b177516e7f58390a2d074a2b (patch)
treed4648aecea89bd3799de7a6ee50a6333bd967e1a /jslib/urweb.js
parentc2e441e71003b5e49d1dc880f26b25792501342b (diff)
Injected a non-special-case datatype
Diffstat (limited to 'jslib/urweb.js')
-rw-r--r--jslib/urweb.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jslib/urweb.js b/jslib/urweb.js
index 16424eb3..9d28b461 100644
--- a/jslib/urweb.js
+++ b/jslib/urweb.js
@@ -41,6 +41,10 @@ function dyn(s) {
s.h = cons(function() { x.innerHTML = s.v }, s.h);
}
+function eh(x) {
+ return x.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;");
+}
+
function ts(x) { return x.toString() }
function bs(b) { return (b ? "True" : "False") }