Skip to content

Commit

Permalink
Add test case for entity in title not being decoded when decodeEntiti…
Browse files Browse the repository at this point in the history
…es=false
  • Loading branch information
billneff79 committed Oct 20, 2020
1 parent 3295a8b commit ffcae9d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/__fixtures__/Events/38-entity-in-title-no-decode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "entity in title - decodeEntities=false (#592)",
"options": {
"parser": {
"decodeEntities": false
}
},
"html": "<title>the &quot;title&quot;",
"expected": [
{
"event": "opentagname",
"data": ["title"]
},
{
"event": "opentag",
"data": ["title", {}]
},
{
"event": "text",
"data": ["the &quot;title&quot;"]
},
{
"event": "closetag",
"data": ["title"]
}
]
}

0 comments on commit ffcae9d

Please sign in to comment.