インターフェース: HTMLParser2Options
XML のデフォルトパーサーである htmlparser2 で受け入れられるオプション。
参照
https://github.com/fb55/htmlparser2/wiki/Parser-options
拡張
DomHandlerOptions
.ParserOptions
プロパティ
Tokenizer?
オプション
Tokenizer: typeofdefault
デフォルトのトークナイザーを上書きできます。
継承元
HTMLParser2ParserOptions.Tokenizer
定義位置
node_modules/htmlparser2/lib/esm/Parser.d.ts:47
decodeEntities?
オプション
decodeEntities:boolean
ドキュメント内のエンティティをデコードします。
デフォルト
true
継承元
HTMLParser2ParserOptions.decodeEntities
定義位置
node_modules/htmlparser2/lib/esm/Parser.d.ts:17
lowerCaseAttributeNames?
オプション
lowerCaseAttributeNames:boolean
true
に設定すると、すべての属性名が小文字になります。速度に大きな影響があります。
デフォルト
!xmlMode
継承元
HTMLParser2ParserOptions.lowerCaseAttributeNames
定義位置
node_modules/htmlparser2/lib/esm/Parser.d.ts:29
lowerCaseTags?
オプション
lowerCaseTags:boolean
true に設定すると、すべてのタグが小文字になります。
デフォルト
!xmlMode
継承元
HTMLParser2ParserOptions.lowerCaseTags
定義位置
node_modules/htmlparser2/lib/esm/Parser.d.ts:23
recognizeCDATA?
オプション
recognizeCDATA:boolean
true に設定すると、xmlMode オプションが有効になっていなくても、CDATA セクションがテキストとして認識されます。注: xmlMode が true
に設定されている場合、CDATA セクションは常にテキストとして認識されます。
デフォルト
xmlMode
継承元
HTMLParser2ParserOptions.recognizeCDATA
定義位置
node_modules/htmlparser2/lib/esm/Parser.d.ts:36
recognizeSelfClosing?
オプション
recognizeSelfClosing:boolean
true
に設定すると、xmlModeがtrue
に設定されていなくても、閉じタグがonclosetagイベントをトリガーします。注: xmlModeがtrue
に設定されている場合、閉じタグは常に認識されます。
デフォルト
xmlMode
継承元
HTMLParser2ParserOptions.recognizeSelfClosing
定義位置
node_modules/htmlparser2/lib/esm/Parser.d.ts:43
withEndIndices?
オプション
withEndIndices:boolean
ノードにendIndex
プロパティを追加します。パーサーが非ストリーミングモードで使用される場合、endIndex
はドキュメント内でのノードの終了位置を示す整数です。
デフォルト
false
継承元
DomHandlerOptions.withEndIndices
定義位置
node_modules/domhandler/lib/esm/index.d.ts:19
withStartIndices?
オプション
withStartIndices:boolean
ノードにstartIndex
プロパティを追加します。パーサーが非ストリーミングモードで使用される場合、startIndex
はドキュメント内でのノードの開始位置を示す整数です。
デフォルト
false
継承元
DomHandlerOptions.withStartIndices
定義位置
node_modules/domhandler/lib/esm/index.d.ts:11
xmlMode?
オプション
xmlMode:boolean
マークアップをXMLとして扱います。
デフォルト
false
継承元
DomHandlerOptions.xmlMode
定義位置
node_modules/domhandler/lib/esm/index.d.ts:25