[][src]Struct struckdown::processors::HtmlSanitizer

pub struct HtmlSanitizer {
    pub link_rel: Option<String>,
    pub url_schemes: HashSet<String>,
    pub allow_class: bool,
    pub allow_style: bool,
    pub allow_comments: bool,
}

Automatically add anchors to all headers when missing.

When applied this wraps the stream in a HtmlSanitizerIter.

Fields

link_rel: Option<String>

Configures link rel to be added to all links.

url_schemes: HashSet<String>

Permitted URL schems.

allow_class: bool

If configured the class attribute is permitted without filtering.

allow_style: bool

If configured the style attribute is permitted without filtering.

allow_comments: bool

If set to false then comments are removed.

Trait Implementations

impl Clone for HtmlSanitizer[src]

impl Debug for HtmlSanitizer[src]

impl Default for HtmlSanitizer[src]

impl<'de> Deserialize<'de> for HtmlSanitizer where
    HtmlSanitizer: Default
[src]

impl Processor for HtmlSanitizer[src]

impl Serialize for HtmlSanitizer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,