summaryrefslogtreecommitdiff
path: root/rel/overlay/share/www/script/futon.format.js
diff options
context:
space:
mode:
Diffstat (limited to 'rel/overlay/share/www/script/futon.format.js')
-rw-r--r--rel/overlay/share/www/script/futon.format.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rel/overlay/share/www/script/futon.format.js b/rel/overlay/share/www/script/futon.format.js
index 0d536e36..8d9b7f5c 100644
--- a/rel/overlay/share/www/script/futon.format.js
+++ b/rel/overlay/share/www/script/futon.format.js
@@ -16,7 +16,10 @@
escape: function(string) {
return string.replace(/&/g, "&")
.replace(/</g, "&lt;")
- .replace(/>/g, "&gt;");
+ .replace(/>/g, "&gt;")
+ .replace(/"/, "&quot;")
+ .replace(/'/, "&#39;")
+ ;
},
// JSON pretty printing