diff --git a/tag.go b/tag.go index c8c12a5..2f73c89 100644 --- a/tag.go +++ b/tag.go @@ -361,7 +361,7 @@ func JSONString(v interface{}) (r string) { } func escapeAttr(str string) (r string) { - r = strings.Replace(str, "'", "'", -1) - r = strings.Replace(r, "\n", "", -1) + r = strings.Replace(str, "'", "'", -1) + //r = strings.Replace(r, "\n", "", -1) return } diff --git a/tag_test.go b/tag_test.go index 1c30c60..88aeffb 100644 --- a/tag_test.go +++ b/tag_test.go @@ -49,7 +49,7 @@ var htmltagCases = []struct { ), expected: `
- +
`, },