Fix sanitizer

This commit is contained in:
Iacopo Spalletti 2014-06-05 22:34:23 +02:00
parent e8dc34bf3c
commit 70597cc8b4
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def _get_default_parser():
sanitizer.HTMLSanitizer.acceptable_attributes +
sanitizer.HTMLSanitizer.mathml_attributes +
sanitizer.HTMLSanitizer.svg_attributes)
opts['tokenizer'] = sanitizer
opts['tokenizer'] = sanitizer.HTMLSanitizer
return html5lib.HTMLParser(tree=treebuilders.getTreeBuilder("dom"),
**opts)