Use HTMLEscapeString in Textf (#27)
1 file changed, 1 insertion(+), 1 deletion(-)
changed files
M gomponents.go → gomponents.go
@@ -140,7 +140,7 @@ // Textf creates a text DOM Node that Renders the interpolated and escaped string t. func Textf(format string, a ...interface{}) NodeFunc { return func() string { - return template.HTMLEscaper(fmt.Sprintf(format, a...)) + return template.HTMLEscapeString(fmt.Sprintf(format, a...)) } }