diff --git a/.version b/.version index 2f61cf756..87e643b96 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.2.468 \ No newline at end of file +0.2.470 \ No newline at end of file diff --git a/benchmarks/templ/template.templ b/benchmarks/templ/template.templ index 9a01870d9..54ac5f278 100644 --- a/benchmarks/templ/template.templ +++ b/benchmarks/templ/template.templ @@ -3,7 +3,7 @@ package testhtml templ Render(p Person) {

{ p.Name }

-
` }> +
` }>
email:{ p.Email }
diff --git a/generator/test-a-href/template.templ b/generator/test-a-href/template.templ index ef4a24198..30887048b 100644 --- a/generator/test-a-href/template.templ +++ b/generator/test-a-href/template.templ @@ -1,7 +1,7 @@ package testahref templ render() { - Ignored + Ignored Sanitized Unsanitized } diff --git a/generator/test-complex-attributes/template.templ b/generator/test-complex-attributes/template.templ index c84c3cf83..ec1c62761 100644 --- a/generator/test-complex-attributes/template.templ +++ b/generator/test-complex-attributes/template.templ @@ -2,9 +2,9 @@ package testcomplexattributes templ ComplexAttributes() {
- + + @Conditional(true) } diff --git a/parser/v2/types.go b/parser/v2/types.go index bd0ecfd7a..11ca09788 100644 --- a/parser/v2/types.go +++ b/parser/v2/types.go @@ -5,7 +5,6 @@ import ( "errors" "fmt" "go/format" - "html" "io" "strings" "unicode" @@ -665,7 +664,7 @@ type ConstantAttribute struct { } func (ca ConstantAttribute) String() string { - return ca.Name + `="` + html.EscapeString(ca.Value) + `"` + return ca.Name + `="` + ca.Value + `"` } func (ca ConstantAttribute) Write(w io.Writer, indent int) error {