cheerio: adding additional DomHandler configuration options (#43863)

* adding DomHandler options & test

* adding trevorhreed as author
This commit is contained in:
Trevor 2020-04-23 13:13:13 -06:00 committed by GitHub
parent e071668c91
commit 4e2fa67b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,8 @@ $ = cheerio.load(html, {
$ = cheerio.load(html, {
normalizeWhitespace: true,
withStartIndices: true,
withEndIndices: true,
xmlMode: true,
decodeEntities: true,
lowerCaseTags: true,

View File

@ -8,6 +8,7 @@
// Chennakrishna <https://github.com/chennakrishna8>
// AzSiAz <https://github.com/AzSiAz>
// Ryo Ota <https://github.com/nwtgck>
// Trevor Reed <https://github.com/trevorhreed>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@ -235,6 +236,8 @@ interface CheerioOptionsInterface {
recognizeCDATA?: boolean;
recognizeSelfClosing?: boolean;
normalizeWhitespace?: boolean;
withStartIndices?: boolean;
withEndIndices?: boolean;
ignoreWhitespace?: boolean;
_useHtmlParser2?: boolean;
}