loaders.gl support
| Type | API |
|---|---|
| Loader | HTMLLoader |
The HTML boundary
Useful structure, without pretending to render a page.
HTMLLoader is intended for small ad-hoc tasks: extracting an error message, finding a URL, or inspecting a response that should have been XML or JSON.
Input
HTML-encoded response data
Output
An untyped tree of tags and values
Good fit
Errors, metadata, and simple extraction
Not a fit
Rendering or standards-complete HTML parsing
Detailed guide
HTMLLoader details
The sections below document the supported extraction-oriented behavior and its limitations.
HTML (Hyper Text Markup Language) is a (slightly incompatible) profile of XML.
The goals of the HTMLLoader in loaders.gl are quite limited.
It is designed for minimal ad-hoc use cases such as
- the extraction of an error string from an HTML formatted error response from a server
- or possibly to extract some valuable information (perhaps the URL to a geospatial service) from a server that doesn't provide more structured return formats (such as JSON or XML).
The HTMLLoader is not intended for full fidelity parsing or display of HTML files.