# ReaderHtmlOptions

Options for HTML ingestion pipeline (HTML -> Markdown).

Class 

`OfficeIMO.Reader.Html`

**Namespace**

`OfficeIMO.Reader.Html`

**Assembly**

`OfficeIMO.Reader.Html`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ReaderHtmlOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L12)

**Modifiers**

sealed

Options for HTML ingestion pipeline (HTML -> Markdown).

## Inheritance

- object
- ReaderHtmlOptions

## Usage

Explore 5 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 4

- Method [ReaderHtmlOptions.Clone](/api/reader-html/officeimo-reader-html-readerhtmloptions/#method-clone)
- Method [ReaderHtmlOptions.CreateOfficeIMOProfile](/api/reader-html/officeimo-reader-html-readerhtmloptions/#method-createofficeimoprofile)
- Method [ReaderHtmlOptions.CreatePortableProfile](/api/reader-html/officeimo-reader-html-readerhtmloptions/#method-createportableprofile)
- Method [ReaderHtmlOptions.CreateUntrustedHtmlProfile](/api/reader-html/officeimo-reader-html-readerhtmloptions/#method-createuntrustedhtmlprofile-int32)

### Accepted by parameters 1

- Method [OfficeDocumentReaderBuilderHtmlExtensions.AddHtmlHandler](/api/reader-html/officeimo-reader-html-officedocumentreaderbuilderhtmlextensions/#method-addhtmlhandler-officeimo-reader-officedocumentreaderbuilder-officeimo-reader-html-readerhtmloptions-boolean) parameter `htmlOptions`

Filter members 

Show inherited

## Constructors

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

[ReaderHtmlOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L12)

## Methods

`public ReaderHtmlOptions Clone()` [#](#method-clone)

[ReaderHtmlOptions.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L70)

Creates a copy of the current options instance so reader registrations can reuse templates safely.

Returns

`ReaderHtmlOptions` A new [ReaderHtmlOptions](/api/reader-html/officeimo-reader-html-readerhtmloptions/) with cloned nested HTML-to-Markdown options.

`public static ReaderHtmlOptions CreateOfficeIMOProfile()` [#](#method-createofficeimoprofile)

[ReaderHtmlOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L23)

Creates the default OfficeIMO HTML reader profile.

Returns

`ReaderHtmlOptions` A new [ReaderHtmlOptions](/api/reader-html/officeimo-reader-html-readerhtmloptions/) instance using the default HTML-to-Markdown profile.

`public static ReaderHtmlOptions CreatePortableProfile()` [#](#method-createportableprofile)

[ReaderHtmlOptions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L31)

Creates a portable HTML reader profile that favors portable Markdown output.

Returns

`ReaderHtmlOptions` A new [ReaderHtmlOptions](/api/reader-html/officeimo-reader-html-readerhtmloptions/) instance using the portable HTML-to-Markdown profile.

`public static ReaderHtmlOptions CreateUntrustedHtmlProfile(int maxInputCharacters)` [#](#method-createuntrustedhtmlprofile-int32)

[ReaderHtmlOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L41)

Creates a bounded HTML reader profile for untrusted or size-sensitive HTML ingestion.

Parameters

**maxInputCharacters int required**

Maximum HTML input length accepted by the HTML-to-Markdown stage.

Returns

`ReaderHtmlOptions` A new [ReaderHtmlOptions](/api/reader-html/officeimo-reader-html-readerhtmloptions/) instance with a configured HTML input character limit.

## 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 bool ChunkByHeadings { get; set; }` [#](#property-chunkbyheadings)

[ReaderHtmlOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L12)

Starts a new chunk at Markdown headings when possible.

`public Encoding? InputEncoding { get; set; }` [#](#property-inputencoding)

[ReaderHtmlOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L17)

Explicit byte encoding for stream and file input. When null, the reader detects a BOM or HTML meta charset and otherwise uses UTF-8.

`public HtmlConversionDocumentOptions? ConversionOptions { get; set; }` [#](#property-conversionoptions)

[ReaderHtmlOptions.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L59)

Shared parsing, trust, URL-policy, and complexity options applied before the reader projects HTML.

`public HtmlMarkdownExportOptions? HtmlToMarkdownOptions { get; set; }` [#](#property-htmltomarkdownoptions)

[ReaderHtmlOptions.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Html/ReaderHtmlOptions.cs#L64)

Options passed to HTML-to-Markdown conversion stage.

<!-- PowerForge markdown artifact sha256:A080DADFFC9A33E745D449C72093BEF5F65043761B55AC6D8C5587C3D35EDCCB -->
