# HtmlContentSafety

Inspects machine-readable HTML that is concealed from an ordinary rendered view.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[HtmlContentSafety.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Html/ContentSafety/HtmlContentSafety.cs#L16)

**Modifiers**

static

Inspects machine-readable HTML that is concealed from an ordinary rendered view.

## Inheritance

- object
- HtmlContentSafety

Filter members 

Show inherited

## Methods

`public static OfficeContentSafetyReport Inspect(string html, OfficeContentSafetyOptions? options = null)` [#](#method-inspect-string-officeimo-contentsafety-officecontentsafetyoptions)

[HtmlContentSafety.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Html/ContentSafety/HtmlContentSafety.cs#L16)

Inspects HTML using OfficeIMO's computed CSS cascade.

Parameters

**html string required**

**options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null optional**

Returns

`OfficeContentSafetyReport`

`public static OfficeContentSafetyReport InspectFile(string filePath, OfficeContentSafetyOptions? options = null)` [#](#method-inspectfile-string-officeimo-contentsafety-officecontentsafetyoptions)

[HtmlContentSafety.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Html/ContentSafety/HtmlContentSafety.cs#L26)

Inspects a UTF-8 HTML file.

Parameters

**filePath string required**

**options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null optional**

Returns

`OfficeContentSafetyReport`

`public static OfficeContentCleanupResult RemoveSelected(string html, OfficeContentCleanupSelection selection, OfficeContentSafetyOptions? options = null)` [#](#method-removeselected-string-officeimo-contentsafety-officecontentcleanupselection-officeimo-contentsafety-officecontentsafetyoptions)

[HtmlContentSafety.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Html/ContentSafety/HtmlContentSafety.cs#L36)

Removes only exact, current findings selected by the caller and then reinspects the result.

Parameters

**html string required**

**selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection required**

**options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null optional**

Returns

`OfficeContentCleanupResult`

`public static OfficeContentCleanupResult RemoveSelectedFile(string inputPath, string outputPath, OfficeContentCleanupSelection selection, OfficeContentSafetyOptions? options = null)` [#](#method-removeselectedfile-string-string-officeimo-contentsafety-officecontentcleanupselection-officeimo-contentsafety-officecontentsafetyoptions)

[HtmlContentSafety.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Html/ContentSafety/HtmlContentSafety.cs#L64)

Atomically writes an explicitly cleaned HTML artifact.

Parameters

**inputPath string required**

**outputPath string required**

**selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection required**

**options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null optional**

Returns

`OfficeContentCleanupResult`

## 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?`

<!-- PowerForge markdown artifact sha256:65EBE989774D6A93B6FCD6B72688FFD58B8AD98BDD94EBADC93144036370532D -->
