diff options
author | bptato <nincsnevem662@gmail.com> | 2022-02-08 23:36:16 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-02-08 23:36:21 +0100 |
commit | acfa008840bbd9fcdafcee4197a3a776db2d348d (patch) | |
tree | 8b2b6df978d7a633f28e11fbbdd1bd08866ff895 | |
parent | e2bb7da4f7ecd0c5bd7d45f2e9935b73aa062f69 (diff) | |
download | chawan-acfa008840bbd9fcdafcee4197a3a776db2d348d.tar.gz |
parse_tag: fix html entities in values
-rw-r--r-- | src/html/parser.nim | 2 |
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: |