Crate tl

Crate tl 

Source
Expand description

§astral-tl

tl is a fast HTML parser written in pure Rust.

§Provenance

This crate is a fork of y21/tl, modified to include bug fixes and other improvements.

§License

This project is licensed under the MIT license.

Re-exports§

pub use errors::ParseError;

Modules§

errors
Errors that occur throughout the crate
inline
Inline data structures
queryselector
Query selector API

Structs§

Attributes
Stores all attributes of an HTML tag, as well as additional metadata such as id and class
Bytes
A storage type for raw bytes, used by the parser
Children
A thin wrapper around the children of HTMLTag
ChildrenMut
A thin mutable wrapper around the children of HTMLTag
HTMLTag
Represents a single HTML element
NodeHandle
A detached, external handle to a HTML node, originally obtained from a Parser
Parser
The main HTML parser
ParserOptions
Options for the HTML Parser
VDom
VDom represents a Document Object Model
VDomGuard
A RAII guarded version of VDom

Enums§

HTMLVersion
HTML Version ()
Node
An HTML Node

Functions§

parse
Parses the given input string
parse_owned
Parses the given input string and returns an owned, RAII guarded DOM
parse_query_selector
Parses a query selector

Type Aliases§

ClassVec
Inline class vector
InnerNodeHandle
The inner type of a NodeHandle, used to represent an index into the tags table
RawAttributesMap
The type of map for “raw” attributes
RawChildren
The type of vector for children of an HTML tag
Tree
A list of HTML nodes