about summary refs log tree commit diff stats
path: root/gomponents.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2020-09-25 13:39:55 +0200
committerGitHub2020-09-25 13:39:55 +0200
commit83faa4caa3e2686ecbfb54ab9c9024c408453563 (patch)
tree81e07b6a3e13af0f3d392940d6c7142ddc720a5a /gomponents.go
parent5d5933899c320101dbf590bdc9aae6e4c5134073 (diff)
downloadgomponents-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.go2
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)
 	}
 }