HtmlNormalizationOptions
OfficeIMO.Html
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.
Returned or exposed by 1
Accepted by parameters 1
- Method HtmlNormalizer.Normalize
Constructors
public HtmlNormalizationOptions() #Inherited Methods
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.