Remove debug printing, add allow_doctype config

This commit is contained in:
2020-04-25 19:20:23 -04:00
parent caca121bef
commit 5f57b390e2
3 changed files with 61 additions and 36 deletions

View File

@@ -5,6 +5,7 @@ use crate::sanitizer::SanitizerConfig;
lazy_static! {
pub static ref DEFAULT_CONFIG: SanitizerConfig = SanitizerConfig {
allow_comments: false,
allow_doctype: false,
allowed_elements: HashSet::new(),
allowed_attributes: HashSet::new(),
allowed_attributes_per_element: HashMap::new(),