Skip to content

Commit 4a8be73

Browse files
committed
fix: converting html entity name, close #51
1 parent 6bd5975 commit 4a8be73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const {Parser} = require('htmlparser2');
33
/**
44
* @see https://github.com/fb55/htmlparser2/wiki/Parser-options
55
*/
6-
const defaultOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false};
6+
const defaultOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false, decodeEntities: false};
77

88
const defaultDirectives = [{name: '!doctype', start: '<', end: '>'}];
99

test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chai.use(require('sinon-chai'));
1010

1111
describe('PostHTML-Parser test', () => {
1212
describe('Call signatures', () => {
13-
const customOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false};
13+
const customOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false, decodeEntities: false};
1414
let MockedHtmlParser2;
1515
let parserSpy;
1616

0 commit comments

Comments
 (0)