1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use serde::{Deserialize, Serialize};
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct ParseOptions {
pub case_sensitive_tagname: bool,
pub allow_self_closing: bool,
pub auto_fix_endtag: bool,
pub auto_remove_nostart_endtag: bool,
}
#[derive(Default, Deserialize, Serialize)]
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,
}