package util import ( "html/template" "strings" ) func HTMLCellEscapeString(s string) template.HTML { html := template.HTMLEscapeString(s) if strings.TrimSpace(html) == "" { html = " " } return template.HTML(html) }