Skip to content

Commit

Permalink
Add two tests containing ampersand characters
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jun 14, 2024
1 parent 49f04c6 commit 440d8b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions html_sanitizer/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def test_01_sanitize(self):
# ...but breaks without any additional content are still removed
("<a><br /> </a>", "<a> </a>"),
("<p>blab<br hello='world' />blub<p>", "<p>blab<br>blub</p>"),
("<p>A & B</p>", "<p>A &amp; B</p>"),
("<p>A &lt; B</p>", "<p>A &lt; B</p>"),
]

self.run_tests(entries)
Expand Down

0 comments on commit 440d8b5

Please sign in to comment.