Documentation
¶
Index ¶
- func BytesToStr(bytes []byte) string
- func DomAttrValue(n *html.Node, attrName string) string
- func DomChildByType(n *html.Node, dataAtom atom.Atom) *html.Node
- func DomCustomAttrs(n *html.Node) (ret map[string]string)
- func DomHTML(n *html.Node) []byte
- func DomText(n *html.Node) string
- func GetTextMarkAData(n *html.Node) (href, title string)
- func GetTextMarkBlockRefData(n *html.Node) (id, subtype string)
- func GetTextMarkFileAnnotationRefData(n *html.Node) (id string)
- func GetTextMarkInlineMathData(n *html.Node) (content string)
- func GetTextMarkInlineMemoData(n *html.Node) (content string)
- func GetTextMarkTextData(n *html.Node) (content string)
- func GetTextMarkTextDataWithoutEscapeSingleQuote(n *html.Node) (content string)
- func IsDocIAL(tokens []byte) bool
- func IsDocIAL2(ial [][]string) bool
- func IsTempMarkSpan(n *html.Node) bool
- func PathEscape(s string) string
- func PathUnescape(s string) (string, error)
- func RecoverPanic(err *error)
- func StrToBytes(str string) []byte
- func WordCount(str string) (runeCount, wordCount int)
- type EscapeError
- type InvalidHostError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomChildByType ¶ added in v1.7.6
func GetTextMarkAData ¶ added in v1.7.5
func GetTextMarkBlockRefData ¶ added in v1.7.5
func GetTextMarkFileAnnotationRefData ¶ added in v1.7.5
func GetTextMarkInlineMathData ¶ added in v1.7.5
func GetTextMarkInlineMemoData ¶ added in v1.7.5
func GetTextMarkTextData ¶ added in v1.7.5
func GetTextMarkTextDataWithoutEscapeSingleQuote ¶ added in v1.7.5
func IsTempMarkSpan ¶ added in v1.7.6
func PathEscape ¶
PathEscape escapes the string so it can be safely placed inside a URL path segment.
func PathUnescape ¶
PathUnescape does the inverse transformation of PathEscape, converting each 3-byte encoded substring of the form "%AB" into the hex-decoded byte 0xAB. It returns an error if any % is not followed by two hexadecimal digits.
PathUnescape is identical to QueryUnescape except that it does not unescape '+' to ' ' (space).
Types ¶
type EscapeError ¶
type EscapeError string
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type InvalidHostError ¶
type InvalidHostError string
func (InvalidHostError) Error ¶
func (e InvalidHostError) Error() string
Click to show internal directories.
Click to hide internal directories.