1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#[derive(Debug, Default)]
pub struct ParseOptions {
pub case_sensitive_tagname: bool,
pub allow_self_closing: bool,
pub auto_fix_unclosed_tag: bool,
pub auto_fix_unexpected_endtag: bool,
pub auto_fix_unescaped_lt: bool,
}
#[derive(Debug, Default)]
pub struct RenderOptions {
pub minify_spaces: bool,
pub lowercase_tagname: bool,
pub remove_endtag_space: bool,
pub remove_attr_quote: bool,
pub remove_comment: bool,
pub always_close_void: bool,
pub inner_html: bool,
pub decode_entity: bool,
pub encode_content: bool,
}