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, // whether the tagname is case-sensitive, default case-insenstive
	pub allow_self_closing: bool,     // allow self closing that not void elements
	pub auto_fix_unclosed_tag: bool,  // auto fix unclosed tag
	pub auto_fix_unexpected_endtag: bool, // auto fix unexpected end tag
	pub auto_fix_unescaped_lt: bool,  // auto fix unescaped left angle  '<'
}

#[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,
}