witten
/
luminotes
Archived
1
0
Fork 0

Html_cleaner now allows mailto URLs.

This commit is contained in:
Dan Helfman 2009-02-13 13:45:31 -08:00
parent c2e3aae96a
commit 3da4f7e739
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class Html_cleaner(HTMLParser):
# The only schemes allowed in URLs (for href and src attributes).
# Adding "javascript" or "vbscript" to this list would not be smart.
self.allowed_schemes = ['http','https','ftp', 'irc', '']
self.allowed_schemes = ['http','https','ftp', 'irc','mailto','']
# Boolean indicating whether links need to have a target attribute.
self.require_link_target = require_link_target