(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestToTextBr(t *testing.T) { |
| 23 | got := ToText("line1<br>line2") |
| 24 | if !strings.Contains(got, "line1\nline2") { |
| 25 | t.Errorf("ToText br = %q, should contain newline between lines", got) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func TestToTextList(t *testing.T) { |
| 30 | got := ToText("<ul><li>one</li><li>two</li></ul>") |