Skip to content

Commit 440d8b5

Browse files
committed
Add two tests containing ampersand characters
1 parent 49f04c6 commit 440d8b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

html_sanitizer/tests.py

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def test_01_sanitize(self):
7474
# ...but breaks without any additional content are still removed
7575
("<a><br /> </a>", "<a> </a>"),
7676
("<p>blab<br hello='world' />blub<p>", "<p>blab<br>blub</p>"),
77+
("<p>A & B</p>", "<p>A &amp; B</p>"),
78+
("<p>A &lt; B</p>", "<p>A &lt; B</p>"),
7779
]
7880

7981
self.run_tests(entries)

0 commit comments

Comments
 (0)