Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdHeat committed Apr 12, 2023
1 parent c0ad63f commit 8d5975e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/bluemonday/test_sanitize.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ def test_HrefSanitization():
cases = [
Case(
"""abc<a href="https://abc&quot;&gt;<script&gt;alert(1)<&#x2f;script/">CLICK""",
"""abc<a href="https://abc&amp;quot;&gt;&lt;script&gt;alert(1)&lt;/script/" rel="nofollow">CLICK""",
"""abc<a href="https://abc&#34;&gt;&lt;script&gt;alert(1)&lt;/script/" rel="nofollow">CLICK""",
),
Case(
"""<a href="https://abc&quot;&gt;<script&gt;alert(1)<&#x2f;script/">""",
"""<a href="https://abc&amp;quot;&gt;&lt;script&gt;alert(1)&lt;/script/" rel="nofollow">""",
"""<a href="https://abc&#34;&gt;&lt;script&gt;alert(1)&lt;/script/" rel="nofollow">""",
),
]
p = UGCPolicy()
Expand Down

0 comments on commit 8d5975e

Please sign in to comment.