[][src]Module marked::filter

Mutating visitor support for Document.

Enums

Action

An instruction returned by the Fn closure used by Document::filter.

Functions

detach_banned_elements

Detach known banned elements (TagMeta::is_banned) and any elements which are unknown.

detach_comments

Detach any comment nodes.

detach_pis

Detach any processing instruction nodes.

fold_empty_inline

Fold meaningless inline elements, which are empty or contain only logical whitespace.

retain_basic_attributes

Filter out attributes that are not included in the "basic" set TagMeta for each element.

text_normalize

Normalize text nodes by merging, replacing control characters and minimizing whitespace.

xmp_to_pre

Convert any <xmp>, <listing>, or <plaintext> elements to <pre>.