about summary refs log tree commit diff stats
path: root/adapter
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-26 02:19:03 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-26 02:19:03 +0100
commitcf1e026b85972135170c80e22b83b4567a5d1099 (patch)
tree93420cdd702b6f0ecf23926eb2c3046a87eda93b /adapter
parent92fbf479f8bf6db6ad0655e5b71a0b58a45a2213 (diff)
downloadchawan-cf1e026b85972135170c80e22b83b4567a5d1099.tar.gz
ansi2html: quote & too
whoops
Diffstat (limited to 'adapter')
-rw-r--r--adapter/format/ansi2html.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/adapter/format/ansi2html.nim b/adapter/format/ansi2html.nim
index a7242be7..48eaf5a2 100644
--- a/adapter/format/ansi2html.nim
+++ b/adapter/format/ansi2html.nim
@@ -348,6 +348,7 @@ proc processData(state: var State, buf: openArray[char]) =
     of '>': state.puts("&gt;")
     of '\'': state.puts("&apos;")
     of '"': state.puts("&quot;")
+    of '&': state.puts("&amp;")
     of '\e': state.parser.reset()
     of '\b': state.parser.state = acpsBackspace
     of '\0': state.puts("\uFFFD") # HTML eats NUL, so replace it here