summaryrefslogtreecommitdiff
path: root/bin-src/util/html.go
blob: af2ce60824f96a7261c3ea8d1b1b32d357d10b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
}