API Reference
HtmlNormalizationOptions
Options controlling OfficeIMO normalized HTML output.
Inheritance
- Object
- HtmlNormalizationOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method HtmlNormalizer.Normalize
- Method HtmlNormalizer.Normalize
Constructors
public HtmlNormalizationOptions() #Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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 UrlPolicy.
public HtmlConversionLimits Limits { get; set; } #Shared source, DOM, stylesheet, and semantic-metadata limits applied before normalization.
public Nullable<Int32> MaxResponsiveImageCandidates { get; set; } #Optional maximum number of candidates normalized from one responsive source set.
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.