Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlNormalizationOptions

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Options controlling OfficeIMO normalized HTML output.

Inheritance

  • object
  • HtmlNormalizationOptions

Usage

Explore 2 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.

Accepted by parameters 1

Constructors

public HtmlNormalizationOptions() #

Properties

public Uri? BaseUri { get; set; } #

Optional base URI used to resolve URL-bearing attributes.

public Uri? BaseElementBaseUri { get; set; } #

Optional base URI used only when resolving the document base element itself.

public HtmlUrlPolicy UrlPolicy { get; set; } #

URL policy applied before URL-bearing attributes are emitted.

public HtmlUrlPolicy? ResourceUrlPolicy { get; set; } #

Optional separate policy for images, stylesheets, fonts, and other non-hyperlink resources. When omitted, a resource policy is derived from HtmlNormalizationOptions.UrlPolicy.

public HtmlConversionLimits Limits { get; set; } #

Shared source, DOM, stylesheet, and semantic-metadata limits applied before normalization.

public int? MaxResponsiveImageCandidates { get; set; } #

Optional additional cap on candidates from one responsive source set; the stricter shared or local cap applies.

public bool UseBodyContentsOnly { get; set; } #

When true, only body contents are emitted instead of a full document shell.

public bool PreserveComments { get; set; } #

When true, comments are preserved. The default keeps normalized output document-focused.

public bool PreserveSkippedElementMarkers { get; set; } #

When true, non-rendered elements such as script and template are retained as empty marker nodes. Target adapters use the markers to report skipped source content without receiving executable or hidden payload text.

public bool PreserveStyleElements { get; set; } #

When true, CSS style elements are preserved as normalized text content.

public bool RemoveEventHandlerAttributes { get; set; } #

When true, inline event-handler attributes are removed from normalized output.

public bool CollapseTextWhitespace { get; set; } #

When true, text nodes collapse repeated whitespace to one space.