diff options
Diffstat (limited to 'gomponents.go')
-rw-r--r-- | gomponents.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |