sync from xml.c: improve parsing whitespace after end tag names - grabtitle - stupid HTML title grabber
(HTM) git clone git://git.codemadness.org/grabtitle
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 29e4807c53d136de19f775b7d08b3c1c3a14d76d
(DIR) parent 504468dfde3fd13d0b695f54ba87a8a913d0e9fb
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 30 Jun 2024 10:10:48 +0200
sync from xml.c: improve parsing whitespace after end tag names
Diffstat:
M xml.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/xml.c b/xml.c
@@ -279,6 +279,8 @@ xml_parse(XMLParser *x)
else if (c == '>' || isspace(c)) {
x->tag[x->taglen] = '\0';
if (isend) { /* end tag, starts with </ */
+ while (c != '>' && c != EOF) /* skip until > */
+ c = GETNEXT();
if (x->xmltagend)
x->xmltagend(x, x->tag, x->taglen, x->isshorttag);
x->tag[0] = '\0';