Documentation ¶
Index ¶
- func GetKeywords(doc *goquery.Document) []string
- func GetTitle(doc *goquery.Document, defaultTitle string) string
- func IsLocalFile(src string) bool
- func ParseHTML(fileName string) (*goquery.Document, error)
- func RenderDocument(doc *goquery.Document) string
- func RenderNode(n *html.Node) string
- func SplitList(text string) []string
- type GoquerySelections
- type ImageList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeywords ¶
GetKeywords gets the keywords meta tag from the HTML DOM
func IsLocalFile ¶
IsLocalFile returns true if the given img src refers to a local file.
func RenderDocument ¶
RenderDocument renders a goquery.Document as string.
Types ¶
type GoquerySelections ¶
GoquerySelections is a list of DOM tree selections.
type ImageList ¶
type ImageList map[string]GoquerySelections
ImageList is a list of images mapping from a local file name to multiple goquery.Selections.
func FindImages ¶
FindImages returns an ImageList of all local images within a DOM tree. The ImageList maps the "src" attribute to a list of goquery.Selections which can be used for modifying the DOM tree after uploading the image.
Click to show internal directories.
Click to hide internal directories.