Open Eagerod opened 8 years ago
A known failure input string:
<div>
<a href="/search?q=</div><a>/results</a>">
CLICK ME!
</a>
</div>
And what the output should be: (prone to error, cause it was eyeballed):
[
{
"dataType": "tag",
"content": "div",
"children":
[
{
"dataType": "tag",
"content": "a",
"attributes": {
"href": {
"dataType": "attribute",
"content": "/search?q=</div><a>/results</a>"
}
},
"children": [
{
"dataType": "text",
"content": "CLICK ME!"
}
]
}
]
}
]
HTML inside attributes can close tags and cause the parser to raise.