pub struct RenderOptions {
pub gfm_disallowed_raw_html: bool,
pub allow_dangerous_html: bool,
}Fields§
§gfm_disallowed_raw_html: boolGFM disallowed raw HTML extension. When enabled, a fixed tag-name
set gets its leading < escaped in raw HTML output.
allow_dangerous_html: boolRaw embedded HTML passthrough (CommonMark “unsafe” mode). When
false (the default), raw HTML is NOT emitted verbatim: block-level
raw HTML is omitted and inline raw HTML is escaped to visible text,
so attacker-supplied <script> / <iframe> / on*= markup cannot
reach the output. Set true to opt back into verbatim passthrough
(the caller then owns the XSS risk).
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderOptions
Source§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§fn default() -> RenderOptions
fn default() -> RenderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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