Documentation ¶
Index ¶
- func ClearText(html string) (text string)
- func FetchExcerpt(html, trimMarker string, limit int) (text string)
- func FetchMatchedExcerpt(html string, words []string, trimMarker string, trimLength int) string
- func FetchRangedExcerpt(html, trimMarker string, offset int, limit int) (text string)
- func GetPicByUrl(Url string) string
- func UrlTitle(title string) (text string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchExcerpt ¶
FetchExcerpt return the excerpt from the HTML string
func FetchMatchedExcerpt ¶ added in v1.3.0
FetchMatchedExcerpt returns the matched excerpt according to the words
func FetchRangedExcerpt ¶ added in v1.3.0
FetchRangedExcerpt returns a ranged excerpt from the HTML string. Note: offset is a rune index, not a byte index
func GetPicByUrl ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.