all repos — gomponents @ 42433a4a096f50c030479c962b0fe1337fa99c5e

HTML components in pure Go

Use HTMLEscapeString in Textf (#27)

Markus Wüstenberg
commit

42433a4a096f50c030479c962b0fe1337fa99c5e

parent

4448a48d85e15895ce68c3d2b9ca009a222fcd2a

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M gomponents.gogomponents.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...)) } }