Browse Source

HTML comment fix so <!-- > doesn't close the comment

Odilitime 5 years ago
parent
commit
45324220cb
  1. 1
      src/html/HTMLParser.cpp

1
src/html/HTMLParser.cpp

@ -99,6 +99,7 @@ std::shared_ptr<Node> HTMLParser::parse(const std::string &html) const { @@ -99,6 +99,7 @@ std::shared_ptr<Node> HTMLParser::parse(const std::string &html) const {
// HTML comments
if (html[cursor + 1] == '!' && html[cursor + 2] == '-' && html[cursor + 3] == '-' ) {
//std::cout << "HTMLParser::Parse - starting HTML comment at " << cursor << std::endl;
cursor += 2; // advance cursor to end of comment start
state = 4;
}
// close tag

Loading…
Cancel
Save