package digest import ( "fmt" "github.com/fthvgb1/wp-go/helper/html" "github.com/fthvgb1/wp-go/helper/slice" "regexp" "strings" "unicode/utf8" ) var removeWpBlock = regexp.MustCompile("") var more = regexp.MustCompile("") var quto = regexp.MustCompile(`" *|& *|< *|> ?|  *`) func ClearHtml(str string) string { content := removeWpBlock.ReplaceAllString(str, "") content = strings.Trim(content, " \t\n\r\000\x0B") content = strings.Replace(content, "]]>", "]]>", -1) content = html.StripTagsX(content, "