#![warn(missing_docs)]
// This is an HTML parser. HTML can be untrusted input from the internet.
#![forbid(clippy::undocumented_unsafe_blocks)]
#![forbid(clippy::multiple_unsafe_ops_per_block)]
#![doc = concat!("[`examples/spans.rs`]: ", file_url!("examples/spans.rs"))]
#![doc = concat!("[changelog]: ", file_url!("CHANGELOG.md"))]
#![doc = concat!("[the LICENSE file]: ", file_url!("LICENSE"))]
#![doc = include_str!("../README.md")]
pub mod attr;
mod emitter;
mod entities;
mod error;
mod machine;
mod naive_parser;
pub mod offset;
pub mod reader;
mod tokenizer;
mod utils;
pub use emitter::{Comment, DefaultEmitter, Doctype, Emitter, EndTag, StartTag, Token};
pub use error::Error;
pub use naive_parser::NaiveParser;
pub use tokenizer::{CdataAction, Event, State, Tokenizer};
#[cfg(feature = "integration-tests")]
pub use utils::State as InternalState;
/// Relative links in the README.md don't work in rustdoc, so we have to override them.
macro_rules! file_url {
($path:literal) => {
concat!(
env!("CARGO_PKG_REPOSITORY"),
"/tree/",
$path,
"?h=v",
env!("CARGO_PKG_VERSION")
)
};
}