aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_util.py')
-rw-r--r--tests/unit/test_util.py4
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("&lt;script&gt;alert('evil')&lt;/script&gt;")),
+ ("<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