add test for correct stripping of HTML comments

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3720 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-02-09 12:58:07 +00:00
parent 057d498fd4
commit 4157c0af04

View file

@ -18,3 +18,12 @@ $Id$
>>> sanitize(input, ['p', 'b'], ['class'])
u'\n<p class="standard">\n<b>Text</b>\n</p>\n'
All comments are stripped from the HTML input.
>>> input2 = """<html>
... <p>text</p>
... <!-- comment -->
... <p>text</p>"""
>>> sanitize(input2)
u'\n<p>text</p>\n\n<p>text</p>'