From 4157c0af0480c353a619c02625160368ee3e4d12 Mon Sep 17 00:00:00 2001 From: helmutm Date: Tue, 9 Feb 2010 12:58:07 +0000 Subject: [PATCH] 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 --- util/html.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/util/html.txt b/util/html.txt index 85d8388..cea5772 100644 --- a/util/html.txt +++ b/util/html.txt @@ -18,3 +18,12 @@ $Id$ >>> sanitize(input, ['p', 'b'], ['class']) u'\n

\nText\n

\n' +All comments are stripped from the HTML input. + + >>> input2 = """ + ...

text

+ ... + ...

text

""" + + >>> sanitize(input2) + u'\n

text

\n\n

text

'