Documentation
¶
Index ¶
- func BytesToStr(bytes []byte) string
- func ContainsStr(str string, strs []string) bool
- func DomAttrValue(n *html.Node, attrName string) string
- func DomAttrValuesWithPrefix(n *html.Node, prefix string) (ret map[string]string)
- func DomChildByTypeAndClass(n *html.Node, dataAtom atom.Atom, class ...string) *html.Node
- func DomChildrenByType(n *html.Node, dataAtom atom.Atom) (ret []*html.Node)
- func DomCustomAttrs(n *html.Node) (ret map[string]string)
- func DomExistChildByType(n *html.Node, dataAtom ...atom.Atom) bool
- func DomHTML(n *html.Node) []byte
- func DomTexhtml(n *html.Node) string
- func DomText(n *html.Node) string
- func ExistDomAttr(n *html.Node, attrName string) bool
- func GetFormula(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 GetTextMarkTextDataWithoutEscapeQuote(n *html.Node) (content string)
- func IsDigit(str string) bool
- func IsDocIAL(tokens []byte) bool
- func IsDocIAL2(ial [][]string) bool
- func IsEmptyStr(str string) bool
- func IsTempMarkSpan(n *html.Node) bool
- func ParseHTML(htmlStr string) *html.Node
- func PathEscape(s string) string
- func PathUnescape(s string) (string, error)
- func RecoverPanic(err *error)
- func RemoveDomAttr(n *html.Node, attrName string)
- func RemoveDomAttrs(n *html.Node)
- func SetDomAttrValue(n *html.Node, attrName, attrVal string)
- 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 ContainsStr ¶ added in v1.7.7
func DomAttrValuesWithPrefix ¶ added in v1.7.7
func DomChildByTypeAndClass ¶ added in v1.7.7
func DomChildrenByType ¶ added in v1.7.7
func DomExistChildByType ¶ added in v1.7.7
func DomTexhtml ¶ added in v1.7.7
func GetFormula ¶ added in v1.7.7
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 GetTextMarkTextDataWithoutEscapeQuote ¶ added in v1.7.7
func IsEmptyStr ¶ added in v1.7.7
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).
func RemoveDomAttr ¶ added in v1.7.7
func RemoveDomAttrs ¶ added in v1.7.7
func SetDomAttrValue ¶ added in v1.7.7
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.