Unverified Commit 29a71089 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Fix doctest comment

parent 5df127a0
...@@ -35,25 +35,25 @@ def bleach(value): ...@@ -35,25 +35,25 @@ def bleach(value):
Examples:: Examples::
>>> bleach('<script></script>') >>> bleach('<script></script>')
'' ''
>>> bleach('simple') >>> bleach('simple')
'simple' 'simple'
>>> bleach('<a href="http://example.com/">ex</a>') >>> bleach('<a href="http://example.com/">ex</a>')
'<a href="http://example.com/">ex</a>' '<a href="http://example.com/">ex</a>'
>>> bleach('<div class="bla"></div>') >>> bleach('<div class="bla"></div>')
'<div class="bla"></div>' '<div class="bla"></div>'
>>> bleach('<img src="https://i.redd.it/22kypw2l93gz.jpg" alt="bees">') >>> bleach('<img src="https://i.redd.it/22kypw2l93gz.jpg" alt="bees">')
'<img alt="bees" src="https://i.redd.it/22kypw2l93gz.jpg">' '<img alt="bees" src="https://i.redd.it/22kypw2l93gz.jpg">'
>>> bleach('<iframe width="560" height="315" ' >>> bleach('<iframe width="560" height="315" '
... 'src="https://www.youtube.com/embed/dQw4w9WgXcQ?rel=0" ' ... 'src="https://www.youtube.com/embed/dQw4w9WgXcQ?rel=0" '
... 'frameborder="0" allowfullscreen></iframe>') == ( ... 'frameborder="0" allowfullscreen></iframe>') == (
... '<iframe allowfullscreen="" frameborder="0" height="315" ' ... '<iframe allowfullscreen="" frameborder="0" height="315" '
... 'src="https://www.youtube.com/embed/dQw4w9WgXcQ?rel=0" ' ... 'src="https://www.youtube.com/embed/dQw4w9WgXcQ?rel=0" '
... 'width="560"></iframe>') ... 'width="560"></iframe>')
True True
>>> bleach('<iframe src="https://clearlyreta.rded.nl/ivo/"></iframe>') >>> bleach('<iframe src="https://clearlyreta.rded.nl/ivo/"></iframe>')
'<iframe></iframe>' '<iframe></iframe>'
""" """
return mark_safe( return mark_safe(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment