mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
handle the case of < in quoted attributes, Bastian Kleineidam Daniel
* HTMLparser.c test/HTML/lt.html result/HTML/lt.html*: handle the case of < in quoted attributes, Bastian Kleineidam Daniel
This commit is contained in:
@ -1970,7 +1970,8 @@ htmlParseHTMLAttribute(htmlParserCtxtPtr ctxt, const xmlChar stop) {
|
||||
/*
|
||||
* Ok loop until we reach one of the ending chars
|
||||
*/
|
||||
while ((CUR != 0) && (CUR != stop) && (CUR != '>')) {
|
||||
while ((CUR != 0) && (CUR != stop)) {
|
||||
if ((stop == 0) && (CUR == '>')) break;
|
||||
if ((stop == 0) && (IS_BLANK(CUR))) break;
|
||||
if (CUR == '&') {
|
||||
if (NXT(1) == '#') {
|
||||
|
Reference in New Issue
Block a user