Class: HTMLReader
Extract the significant text from an arbitrary HTML document. The contents of any head, script, style, and xml tags are removed completely. The URLs for a[href] tags are extracted, along with the inner text of the tag. All other tags are removed, and the inner text is kept intact. Html entities (e.g., &) are not decoded.
Extends
Constructors
new HTMLReader()
new HTMLReader():
HTMLReader
Returns
Inherited from
Methods
getOptions()
getOptions():
object
Wrapper for our configuration options passed to string-strip-html library
Returns
object
An object of options for the underlying library
skipHtmlDecoding
skipHtmlDecoding:
boolean
=true
stripTogetherWithTheirContents
stripTogetherWithTheirContents:
string
[]
See
https://codsen.com/os/string-strip-html/examples
Source
packages/llamaindex/src/readers/HTMLReader.ts:42
loadData()
Parameters
• filePath: string