all repos — gomponents @ 83faa4caa3e2686ecbfb54ab9c9024c408453563

HTML components in pure Go

Use HTMLEscapeString (#24) HTMLEscaper is not needed with strings.

Markus Wüstenberg
commit

83faa4caa3e2686ecbfb54ab9c9024c408453563

parent

5d5933899c320101dbf590bdc9aae6e4c5134073

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M gomponents.gogomponents.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) } }