code: func StripHTML(s string) string {
  
  	// Shortcut strings with no tags in them
  	if !strings.ContainsAny(s, "<>") {
  		return s
  	}
  	s = stripHTMLReplacer.Replace(s)
  
  	// Walk through the string removing all tags
  	b := bp.GetBuffer()
  	defer bp.PutBuffer(b)
  	var inTag, isSpace, wasSpace bool
  	for _, r := range s {
  		if !inTag {
  			isSpace = false
  		}
  
  		switch {
  		case r == '<':
  			inTag = true
  		case r == '>':
  			inTag = false
  		case unicode.IsSpace(r):
  			isSpace = true
  			fallthrough
  		default:
  			if !inTag && (!isSpace || (isSpace && !wasSpace)) {
  				b.WriteRune(r)
  			}
  		}
  
  		wasSpace = isSpace
  
  	}
  	return b.String()
  }
docs: // StripHTML accepts a string, strips out all HTML tags and returns it.