class HtmlParser extends Parser
new HtmlParser(): HtmlParser
Returns:
HtmlParserType:
stringType:
ContextType:
SourceTablehtmlParser.template(source, context): string
Attributes
htmlParser.applyTemplate(source, module): string | Buffer<ArrayBufferLike>
Attributes
Runs the template option over the source and returns the transformed
html. Called from HtmlModulesPlugin's processResult, where the return
value becomes the module's stored source so the parser (which records
dependency offsets against it) and the generator (which renders from
module.originalSource()) stay in agreement.
htmlParser.parse(source, state): ParserState
Attributes
Parses the provided source and updates the parser state.