chore: Use nh3 lib instead of bleach (#23862)

This commit is contained in:
EugeneTorap
2023-04-28 16:36:51 +03:00
committed by GitHub
parent 4a3984e49f
commit 689bc8ea04
7 changed files with 32 additions and 29 deletions

View File

@@ -50,5 +50,8 @@ def test_render_description_with_html() -> None:
._get_content()
.body
)
assert '<p>This is <a href="#">a test</a> alert</p><br>' in email_body
assert (
'<p>This is <a href="#" rel="noopener noreferrer">a test</a> alert</p><br>'
in email_body
)
assert '<td>&lt;a href="http://www.example.com"&gt;333&lt;/a&gt;</td>' in email_body