package safehtml
import (
"strings"
"testing"
)
func TestDescription(t *testing.T) {
const rel = ` rel="nofollow ugc noopener noreferrer" target="_blank"`
for _, c := range []struct{ in, want string }{
// Kept.
{`Hi
x
`, `x
`}, {`x`, `x`}, {`x`, `x`}, {`x`, `x`}, {`
`, `
`},
{`| x |
| x |
cd
cd
`, `
`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`x`, `x`},
{`
`, ``},
{`x
`, `x
`}, {`x
`, `x
`}, {`x
`, `x
`}, {`x
`, `x
`}, {`x
`, `x
`}, {`x`, `x`}, {`x`, `x`}, {`x`, `x`}, {`x`, `x`}, {`