20 lines
311 B
JSON
20 lines
311 B
JSON
|
{
|
||
|
"name": "Ignore empty tags (xml mode)",
|
||
|
"options": {
|
||
|
"xmlMode": true
|
||
|
},
|
||
|
"html": "<link>text</link>",
|
||
|
"expected": [
|
||
|
{
|
||
|
"type": "tag",
|
||
|
"name": "link",
|
||
|
"attribs": {},
|
||
|
"children": [
|
||
|
{
|
||
|
"data": "text",
|
||
|
"type": "text"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|