We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22e79b commit a025e1cCopy full SHA for a025e1c
src/pkg/html/escape_test.go
@@ -64,6 +64,24 @@ var unescapeTests = []unescapeTest{
64
"Footnote‡",
65
"Footnote‡",
66
},
67
+ // Handle single ampersand.
68
+ {
69
+ "copySingleAmpersand",
70
+ "&",
71
72
+ },
73
+ // Handle ampersand followed by non-entity.
74
75
+ "copyAmpersandNonEntity",
76
+ "text &test",
77
78
79
+ // Handle "&#".
80
81
+ "copyAmpersandHash",
82
+ "text &#",
83
84
85
}
86
87
func TestUnescape(t *testing.T) {
0 commit comments