Documentation
¶
Overview ¶
Package markup implements functions for extracting info from HTML and XML documents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnAttribute ¶
GetAnAttribute assumes we passed over an SGML tag and extracts first attribute and its value.
Initially, this code existed inside charset/charset.go, because it was part of implementing the https://html.spec.whatwg.org/multipage/parsing.html#prescan-a-byte-stream-to-determine-its-encoding algorithm. But because extracting an attribute from a tag is the same for both HTML and XML, then the code was moved here.
func SkipAComment ¶ added in v0.20.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.