package digest import ( "fmt" "github.com/fthvgb1/wp-go/helper" "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 = helper.StripTagsX(content, "