Module skyscraper::html
source · Expand description
Parse HTML documents into HtmlDocuments.
§Example: parse HTML text into a document
use skyscraper::html::{self, parse::ParseError};
let html_text = r##"
<html>
<body>
<div>Hello world</div>
</body>
</html>"##;
let document = html::parse(html_text)?;Re-exports§
pub use crate::html::parse::parse;
Modules§
- Create HtmlDocuments from textual input.
Structs§
- A key representing a single HtmlNode contained in a HtmlDocument.
- HTML document tree represented by an indextree arena and a root node.
- An HTML tag and its attributes.
- Text content in an HTML document.
Enums§
- Describes the formatting when converting an HtmlDocument to a string.
- An HTML node can be either a tag or raw text.