diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_util.py b/tests/unit/test_util.py index 0ac5c33..1a56911 100644 --- a/tests/unit/test_util.py +++ b/tests/unit/test_util.py @@ -12,8 +12,8 @@ from fietsboek import util ("**foobar**", Markup("<p><strong>foobar</strong></p>")), ("*foobar*", Markup("<p><em>foobar</em></p>")), ("# foobar", Markup("<h1>foobar</h1>")), - ("<script>alert('evil')</script>", - Markup("<script>alert('evil')</script>")), + ("<script>alert('evil')</script>", Markup("")), + ("<x-script>alert('evil')</x-script>", Markup("<p>alert('evil')</p>")), ]) def test_safe_markdown(md_source, expected): assert util.safe_markdown(md_source) == expected |