Skip to content

Commit

Permalink
fix: remove escaping for ConstantAttribute (a-h#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ross96D committed Nov 11, 2023
1 parent fb53582 commit ab6811b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parser/v2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"go/format"
"html"
"io"
"strings"
"unicode"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ab6811b

Please sign in to comment.