diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-26 02:19:03 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-26 02:19:03 +0100 |
commit | cf1e026b85972135170c80e22b83b4567a5d1099 (patch) | |
tree | 93420cdd702b6f0ecf23926eb2c3046a87eda93b /adapter | |
parent | 92fbf479f8bf6db6ad0655e5b71a0b58a45a2213 (diff) | |
download | chawan-cf1e026b85972135170c80e22b83b4567a5d1099.tar.gz |
ansi2html: quote & too
whoops
Diffstat (limited to 'adapter')
-rw-r--r-- | adapter/format/ansi2html.nim | 1 |
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(">") of '\'': state.puts("'") of '"': state.puts(""") + of '&': state.puts("&") of '\e': state.parser.reset() of '\b': state.parser.state = acpsBackspace of '\0': state.puts("\uFFFD") # HTML eats NUL, so replace it here |