#[derive(Clone, Default)]
pub struct Cfg {
pub allow_noncompliant_unquoted_attribute_values: bool,
pub allow_optimal_entities: bool,
pub allow_removing_spaces_between_attributes: bool,
pub keep_closing_tags: bool,
pub keep_comments: bool,
pub keep_html_and_head_opening_tags: bool,
pub keep_input_type_text_attr: bool,
pub keep_ssi_comments: bool,
pub minify_css: bool,
pub minify_doctype: bool,
pub minify_js: bool,
pub preserve_brace_template_syntax: bool,
pub preserve_chevron_percent_template_syntax: bool,
pub remove_bangs: bool,
pub remove_processing_instructions: bool,
}
impl Cfg {
pub fn new() -> Cfg {
Cfg::default()
}
pub fn enable_possibly_noncompliant(&mut self) {
self.allow_noncompliant_unquoted_attribute_values = true;
self.allow_optimal_entities = true;
self.allow_removing_spaces_between_attributes = true;
self.minify_doctype = true;
}
}