|
|
|
@ -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
|
|
|
|
|