{"modulePath":"github.com/apache/answer","version":"v1.7.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package htmltext\n\n## Functions\n\n```go\nfunc ClearText(html string) string\n```\nClearText clear HTML, get the clear text\n\n```go\nfunc FetchExcerpt(html, trimMarker string, limit int) (text string)\n```\nFetchExcerpt return the excerpt from the HTML string\n\n```go\nfunc FetchMatchedExcerpt(html string, words []string, trimMarker string, trimLength int) string\n```\nFetchMatchedExcerpt returns the matched excerpt according to the words\n\n```go\nfunc FetchRangedExcerpt(html, trimMarker string, offset int, limit int) (text string)\n```\nFetchRangedExcerpt returns a ranged excerpt from the HTML string. Note: offset is a rune index, not a byte index\n\n```go\nfunc GetPicByUrl(url string) string\n```\n\n```go\nfunc UrlTitle(title string) (text string)\n```\n\n","path":"github.com/apache/answer/pkg/htmltext","name":"htmltext","synopsis":"","isRedistributable":true}
