about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-02-08 23:36:16 +0100
committerbptato <nincsnevem662@gmail.com>2022-02-08 23:36:21 +0100
commitacfa008840bbd9fcdafcee4197a3a776db2d348d (patch)
tree8b2b6df978d7a633f28e11fbbdd1bd08866ff895 /src
parente2bb7da4f7ecd0c5bd7d45f2e9935b73aa062f69 (diff)
downloadchawan-acfa008840bbd9fcdafcee4197a3a776db2d348d.tar.gz
parse_tag: fix html entities in values
Diffstat (limited to 'src')
-rw-r--r--src/html/parser.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/parser.nim b/src/html/parser.nim
index b998525a..105c5d0d 100644
--- a/src/html/parser.nim
+++ b/src/html/parser.nim
@@ -145,7 +145,7 @@ proc parse_tag(buf: string, at: var int): DOMParsedTag =
         let startc = buf[at]
         inc at
         while at < buf.len and buf[at] != startc:
-          if buf[at + 1] == '&':
+          if buf[at] == '&':
             inc at
             value &= getescapecmd(buf, at)
           else: