Skip to content

Commit

Permalink
add emptyAttr option to restore previous cheerio behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed May 18, 2022
1 parent f40800e commit 0b5bf9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/htmml2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ var translateMetaTemplate = function (input, output) {
recognizeSelfClosing: false,
lowerCaseTags: false,
_useHtmlParser2: true,
// use attr="" instead of attr for empty attr (to stay consistent with previous cheerio releases)
emptyAttrs: true,
});

// inlining
Expand Down

0 comments on commit 0b5bf9c

Please sign in to comment.