witten
/
luminotes
Archived
1
0
Fork 0

Now stripping HTML comments.

This commit is contained in:
Dan Helfman 2008-03-31 04:29:18 +00:00
parent b403e5419c
commit 388b49c345
2 changed files with 5 additions and 2 deletions

4
NEWS
View File

@ -1,3 +1,7 @@
1.2.22: March 30, 2008
* Made Html_cleaner strip HTML comments, which Open Office adds for styling
purposes.
1.2.21: March 30, 2008
* Made Html_cleaner support many more HTML tags and attributes, so users can
cut and paste from other programs into Luminotes.

View File

@ -171,8 +171,7 @@ class Html_cleaner(HTMLParser):
self.result.append( xssescape('&%s' % ref) )
def handle_comment(self, comment):
if comment:
self.result.append( xssescape("<!--%s-->" % comment) )
pass # strip comments
def handle_starttag(self, tag, method, attrs):
if tag not in self.permitted_tags: