diff options
-rw-r--r-- | gomponents.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gomponents.go b/gomponents.go index 7b93fd9..ae9a158 100644 --- a/gomponents.go +++ b/gomponents.go @@ -140,7 +140,7 @@ func Text(t string) NodeFunc { // 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...)) } } |