summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIacopo Spalletti <github@spalletti.it>2014-06-06 06:03:26 (GMT)
committerIacopo Spalletti <github@spalletti.it>2014-06-06 06:03:26 (GMT)
commit20f97b5bcde19554f804e29bfc57bf925086c03f (patch)
treeee8ff308b220bc83aae3890239c59d7930b120e2
parente8dc34bf3ce0f93991a43f218c2e01ac2943410e (diff)
parent70597cc8b41d770ef5aa26aa81e25e1140cebc4d (diff)
downloaddjangocms-text-ckeditor-20f97b5bcde19554f804e29bfc57bf925086c03f.zip
djangocms-text-ckeditor-20f97b5bcde19554f804e29bfc57bf925086c03f.tar.gz
djangocms-text-ckeditor-20f97b5bcde19554f804e29bfc57bf925086c03f.tar.bz2
Merge pull request #135 from yakky/feature/sanitizer_2
Fix sanitizer
-rw-r--r--djangocms_text_ckeditor/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangocms_text_ckeditor/html.py b/djangocms_text_ckeditor/html.py
index 920bd3d..2f9da4c 100644
--- a/djangocms_text_ckeditor/html.py
+++ b/djangocms_text_ckeditor/html.py
@@ -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)