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:
parent
057d498fd4
commit
4157c0af04
1 changed files with 9 additions and 0 deletions
|
@ -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>'
|
||||
|
|
Loading…
Add table
Reference in a new issue