FetchExcerpt return the excerpt from the HTML string
(html, trimMarker string, limit int)
| 110 | |
| 111 | // FetchExcerpt return the excerpt from the HTML string |
| 112 | func FetchExcerpt(html, trimMarker string, limit int) (text string) { |
| 113 | return FetchRangedExcerpt(html, trimMarker, 0, limit) |
| 114 | } |
| 115 | |
| 116 | // findFirstMatchedWord returns the first matched word and its index |
| 117 | func findFirstMatchedWord(text string, words []string) (string, int) { |