Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

MarkdownRawHtmlHandling

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
e163ccb36643 with working tree changes
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

Controls how raw HTML blocks, inline fragments, and HTML comments are emitted during HTML rendering.

Inheritance

  • Enum
  • MarkdownRawHtmlHandling

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Values

public const MarkdownRawHtmlHandling Allow #

Emit raw HTML verbatim (unsafe for untrusted input).

Value: 0
public const MarkdownRawHtmlHandling Escape #

Escape raw HTML so it is displayed as text.

Value: 1
public const MarkdownRawHtmlHandling Sanitize #

Sanitize raw HTML using a small allowlist. Disallowed tags are escaped and dangerous attributes are removed. Intended for pragmatic "HTML on but safe-ish" scenarios, not full HTML policy enforcement.

Value: 2
public const MarkdownRawHtmlHandling Strip #

Drop raw HTML entirely.

Value: 3