summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/futon.format.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/www/script/futon.format.js b/share/www/script/futon.format.js
index 5feee817..e2eb0593 100644
--- a/share/www/script/futon.format.js
+++ b/share/www/script/futon.format.js
@@ -44,7 +44,11 @@
if (type == "string" && !options.escapeStrings) {
retval = indentLines(retval.replace(/\r\n/g, "\n"), tab.substr(options.indent));
} else {
- retval = escape(JSON.stringify(val));
+ if (options.html) {
+ retval = escape(JSON.stringify(val));
+ } else {
+ retval = JSON.stringify(val);
+ }
}
if (options.html) {
retval = "<code class='" + type + "'>" + retval + "</code>";