pub struct Options {
pub lower_case_tag_name: bool,
pub comment: bool,
pub fix_nested_a_tags: bool,
pub parse_none_closed_tags: bool,
pub block_text_elements: HashMap<String, bool>,
pub suppress_script_style_text: bool,
pub void_tag: VoidTagOptions,
}Fields§
§lower_case_tag_name: bool§comment: boolCorresponds to js option fixNestedATags
Parse not-closed tags (do not attempt JS style repair) -> corresponds to parseNoneClosedTags
block_text_elements: HashMap<String, bool>§suppress_script_style_text: boolWhen true, even if block_text_elements requests extraction for script/style, we suppress creating the inner raw Text node (used by tests expecting empty script/style by default).
void_tag: VoidTagOptionsTrait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more