diff options
Diffstat (limited to 'cmd/golangorg/server_test.go')
| -rw-r--r-- | cmd/golangorg/server_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/golangorg/server_test.go b/cmd/golangorg/server_test.go index be655657..24ef46e0 100644 --- a/cmd/golangorg/server_test.go +++ b/cmd/golangorg/server_test.go @@ -48,6 +48,7 @@ var bads = []string{ " < ", "<-", "& ", + "{{raw <code>", } var ignoreBads = []string{ @@ -55,8 +56,8 @@ var ignoreBads = []string{ `window["location"] && window["location"]["hostname"] == "go.dev/talks"`, } -// findBad returns (only) the lines containing badly escaped HTML in body. -// If findBad returns the empty string, there is no badly escaped HTML. +// findBad returns (only) the lines containing badly escaped sequences in the given HTML body. +// If findBad returns the empty string, there were no badly escaped sequences detected. func findBad(body string) string { lines := strings.SplitAfter(body, "\n") var out []string |
