about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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: