`, `
`,
`
`, `
`,
`
`, `
`,
// Input checkbox
``, ``,
``, ``,
``, ``,
// Code highlight injection
`
`, `
`,
`
Hello there! Something has gone wrong, we are working on it.
In the meantime, play a game with us at example.com.
`, "\n\u00a0
\n\nHello there! Something has gone wrong, we are working on it.
\nIn the meantime, play a game with us at\u00a0example.com.
\n
",
// tags
`Ctrl + C`, `Ctrl + C`,
`NAUGHTY`, `NAUGHTY`,
``, ``,
`unchecked`, `unchecked`,
`NAUGHTY`, `NAUGHTY`,
`contents`, `contents`,
// Color property
`Hello World`, `Hello World`,
`Hello World
`, `Hello World
`, `Hello World
`, `Hello World
`,
`Hello World`, `Hello World`,
`Hello World
`, `Hello World
`, `Hello World
`, `Hello World
`,
// URLs
`[my custom URL scheme](cbthunderlink://somebase64string)`, `[my custom URL scheme](cbthunderlink://somebase64string)`,
`[my custom URL scheme](matrix:roomid/psumPMeAfzgAeQpXMG:feneas.org?action=join)`, `[my custom URL scheme](matrix:roomid/psumPMeAfzgAeQpXMG:feneas.org?action=join)`,
}
for i := 0; i < len(testCases); i += 2 {
assert.Equal(t, testCases[i+1], Sanitize(testCases[i]))
}
}
func TestSanitizeNonEscape(t *testing.T) {
descStr := "