Use HTMLEscapeString (#24) HTMLEscaper is not needed with strings.
1 file changed, 1 insertion(+), 1 deletion(-)
changed files
M gomponents.go → gomponents.go
@@ -133,7 +133,7 @@ // 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) } }