diff --git a/changelog.md b/changelog.md index e10f708..dddbf7f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ +## 0.5.2 (2020-10-30) + +* fix: converting html entity name, close #51 ([4a8be73](https://github.com/posthtml/posthtml-parser/commit/4a8be73)), closes [#51](https://github.com/posthtml/posthtml-parser/issues/51) +* test: converting html entity name, issue #51 ([6bd5975](https://github.com/posthtml/posthtml-parser/commit/6bd5975)), closes [#51](https://github.com/posthtml/posthtml-parser/issues/51) + + + ## 0.5.1 (2020-10-27) +* 0.5.1 ([b6b4a8b](https://github.com/posthtml/posthtml-parser/commit/b6b4a8b)) * style: 2 space, close issue #33 ([cdd7dbd](https://github.com/posthtml/posthtml-parser/commit/cdd7dbd)), closes [#33](https://github.com/posthtml/posthtml-parser/issues/33) * style: after lint ([23dd2a0](https://github.com/posthtml/posthtml-parser/commit/23dd2a0)) * build: change eslint to xo ([5233a43](https://github.com/posthtml/posthtml-parser/commit/5233a43)) diff --git a/index.js b/index.js index e0832fa..026de63 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const {Parser} = require('htmlparser2'); /** * @see https://github.com/fb55/htmlparser2/wiki/Parser-options */ -const defaultOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false}; +const defaultOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false, decodeEntities: false}; const defaultDirectives = [{name: '!doctype', start: '<', end: '>'}]; diff --git a/package-lock.json b/package-lock.json index 559de09..561dfa4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "posthtml-parser", - "version": "0.5.1", + "version": "0.5.2", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "0.5.1", + "version": "0.5.2", "license": "MIT", "dependencies": { "htmlparser2": "^5.0.1" diff --git a/package.json b/package.json index d0f6218..c5e4c3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "posthtml-parser", - "version": "0.5.1", + "version": "0.5.2", "description": "Parse HTML/XML to PostHTMLTree", "keywords": [ "html", diff --git a/test/test.js b/test/test.js index c5241c0..04f5ad3 100644 --- a/test/test.js +++ b/test/test.js @@ -10,7 +10,7 @@ chai.use(require('sinon-chai')); describe('PostHTML-Parser test', () => { describe('Call signatures', () => { - const customOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false}; + const customOptions = {lowerCaseTags: false, lowerCaseAttributeNames: false, decodeEntities: false}; let MockedHtmlParser2; let parserSpy; @@ -229,4 +229,9 @@ describe('PostHTML-Parser test', () => { {tag: 'script', content: [' var str = \'hey