# Functions
EscapeString escapes special characters like "<" to become "<".
NewTokenizer returns a new HTML Tokenizer for the given Reader.
NewTokenizerFragment returns a new HTML Tokenizer for the given Reader, for tokenizing an existing element's InnerHTML fragment.
Parse returns the parse tree for the HTML from the given Reader.
ParseFragment parses a fragment of HTML and returns the nodes that were found.
ParseFragmentWithOptions is like ParseFragment, with options.
ParseOptionEnableScripting configures the scripting flag.
ParseWithOptions is like Parse, with options.
Render renders the parse tree n to the given writer.
UnescapeString unescapes entities like "<" to become "<".
# Constants
No description provided by the author
A CommentToken looks like <!--x-->.
No description provided by the author
A DoctypeToken looks like <!DOCTYPE x>.
No description provided by the author
No description provided by the author
An EndTagToken looks like </a>.
No description provided by the author
ErrorToken means that an error occurred during tokenization.
RawNode nodes are not returned by the parser, but can be part of the Node tree passed to func Render to insert raw HTML (without escaping).
A SelfClosingTagToken tag looks like <br/>.
A StartTagToken looks like <a>.
No description provided by the author
TextToken means a text node.
# Variables
ErrBufferExceeded means that the buffering limit was exceeded.
# Structs
An Attribute is an attribute namespace-key-value triple.
A Node consists of a NodeType and some Data (tag name for element nodes, content for text) and are part of a tree of Nodes.
A Token consists of a TokenType and some Data (tag name for start and end tags, content for text, comments and doctypes).
A Tokenizer returns a stream of HTML Tokens.
# Type aliases
A NodeType is the type of a Node.
ParseOption configures a parser.
A TokenType is the type of a Token.