diff options
author | Markus Wüstenberg | 2020-09-25 13:39:55 +0200 |
---|---|---|
committer | GitHub | 2020-09-25 13:39:55 +0200 |
commit | 83faa4caa3e2686ecbfb54ab9c9024c408453563 (patch) | |
tree | 81e07b6a3e13af0f3d392940d6c7142ddc720a5a /gomponents.go | |
parent | 5d5933899c320101dbf590bdc9aae6e4c5134073 (diff) | |
download | gomponents-83faa4caa3e2686ecbfb54ab9c9024c408453563.tar.lz gomponents-83faa4caa3e2686ecbfb54ab9c9024c408453563.tar.zst gomponents-83faa4caa3e2686ecbfb54ab9c9024c408453563.zip |
Use HTMLEscapeString (#24)
HTMLEscaper is not needed with strings.
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) } } |