# HtmlNormalizationOptions

Options controlling OfficeIMO normalized HTML output.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlNormalizationOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L14)

**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.

### Returned or exposed by 1

- Property [HtmlConversionDocumentOptions.NormalizationOptions](/api/html/officeimo-html-htmlconversiondocumentoptions/#property-normalizationoptions)

### Accepted by parameters 1

- Method [HtmlNormalizer.Normalize](/api/html/officeimo-html-htmlnormalizer/#method-normalize-string-officeimo-html-htmlnormalizationoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public HtmlNormalizationOptions()` [#](#constructor-ctor)

[HtmlNormalizationOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L14)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public Uri? BaseUri { get; set; }` [#](#property-baseuri)

[HtmlNormalizationOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L8)

Optional base URI used to resolve URL-bearing attributes.

`public Uri? BaseElementBaseUri { get; set; }` [#](#property-baseelementbaseuri)

[HtmlNormalizationOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L11)

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

`public HtmlUrlPolicy UrlPolicy { get; set; }` [#](#property-urlpolicy)

[HtmlNormalizationOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L14)

URL policy applied before URL-bearing attributes are emitted.

`public HtmlUrlPolicy? ResourceUrlPolicy { get; set; }` [#](#property-resourceurlpolicy)

[HtmlNormalizationOptions.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L20)

Optional separate policy for images, stylesheets, fonts, and other non-hyperlink resources. When omitted, a resource policy is derived from [HtmlNormalizationOptions.UrlPolicy](/api/html/officeimo-html-htmlnormalizationoptions/).

`public HtmlConversionLimits Limits { get; set; }` [#](#property-limits)

[HtmlNormalizationOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L23)

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

`public int? MaxResponsiveImageCandidates { get; set; }` [#](#property-maxresponsiveimagecandidates)

[HtmlNormalizationOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L26)

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

`public bool UseBodyContentsOnly { get; set; }` [#](#property-usebodycontentsonly)

[HtmlNormalizationOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L29)

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

`public bool PreserveComments { get; set; }` [#](#property-preservecomments)

[HtmlNormalizationOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L32)

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

`public bool PreserveSkippedElementMarkers { get; set; }` [#](#property-preserveskippedelementmarkers)

[HtmlNormalizationOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L38)

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; }` [#](#property-preservestyleelements)

[HtmlNormalizationOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L41)

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

`public bool RemoveEventHandlerAttributes { get; set; }` [#](#property-removeeventhandlerattributes)

[HtmlNormalizationOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L44)

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

`public bool CollapseTextWhitespace { get; set; }` [#](#property-collapsetextwhitespace)

[HtmlNormalizationOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Normalization/HtmlNormalizationOptions.cs#L47)

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

<!-- PowerForge markdown artifact sha256:167B266ECEC7FA46C5566E820032C42DB056975EABF7D4F84120D8BBD98DA2F8 -->
