Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlNormalizationOptions

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Source revision 33d062b583cb 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 Int32? MaxResponsiveImageCandidates { get; set; } #

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

public Boolean UseBodyContentsOnly { get; set; } #

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

public Boolean PreserveComments { get; set; } #

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

public Boolean 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 Boolean PreserveStyleElements { get; set; } #

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

public Boolean RemoveEventHandlerAttributes { get; set; } #

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

public Boolean CollapseTextWhitespace { get; set; } #

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