<div>
<script>
console.log('</')
</script>
</div>
[
{
"type": "element",
"tagName": "div",
"attributes": [],
"children": [
{
"type": "text",
"content": "\n "
},
{
"type": "element",
"tagName": "script",
"attributes": [],
"children": [
{
"type": "text",
"content": "\n console.log('"
},
{
"type": "attribute",
"content": "<"
},
{
"type": "tag-end"
},
{
"type": "text",
"content": "cript>\n"
}
]
}
]
}
]
Input:
Output: