Skip to content

Commit 6bd5975

Browse files
committed
test: converting html entity name, issue #51
1 parent 16eaa69 commit 6bd5975

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,9 @@ describe('PostHTML-Parser test', () => {
229229
{tag: 'script', content: [' var str = \'hey <form\'; if (!str.match(new RegExp(\'<(form|iframe)\', \'g\'))) { /* ... */ }']}
230230
]);
231231
});
232+
233+
it('should be not converting html entity name', () => {
234+
const html = '&zwnj;&nbsp;&copy;';
235+
expect(parser(html)).to.eql(['&zwnj;&nbsp;&copy;']);
236+
});
232237
});

0 commit comments

Comments
 (0)