summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 75cbc739..aafc933a 100644
--- a/lib.c
+++ b/lib.c
@@ -12592,6 +12592,11 @@ static void out_json_str(val str, val out)
case '\t':
put_string(lit("\\t"), out);
break;
+ case '<':
+ put_char(chr(ch), out);
+ if (*cstr == '/')
+ put_char(chr('\\'), out);
+ break;
case 0xDC00:
put_string(lit("\\u0000"), out);
break;