OfficeIMO

API Reference

Enum

RawHtmlHandling

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Controls how raw HTML blocks (and HTML comments) are emitted during HTML rendering.

Inheritance

  • Enum
  • RawHtmlHandling

Values

public const RawHtmlHandling Allow #

Emit raw HTML verbatim (unsafe for untrusted input).

Value: 0
public const RawHtmlHandling Escape #

Escape raw HTML so it is displayed as text.

Value: 1
public const RawHtmlHandling 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 RawHtmlHandling Strip #

Drop raw HTML blocks entirely.

Value: 3