From 83faa4caa3e2686ecbfb54ab9c9024c408453563 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Fri, 25 Sep 2020 13:39:55 +0200 Subject: Use HTMLEscapeString (#24) HTMLEscaper is not needed with strings.--- gomponents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gomponents.go') diff --git a/gomponents.go b/gomponents.go index 09ec0c4..7b93fd9 100644 --- a/gomponents.go +++ b/gomponents.go @@ -133,7 +133,7 @@ func (a attr) String() string { // Text creates a text DOM Node that Renders the escaped string t. func Text(t string) NodeFunc { return func() string { - return template.HTMLEscaper(t) + return template.HTMLEscapeString(t) } } -- cgit 1.4.1