Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlContentSafety

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
5e5a2dda74b3 with working tree changes
Modifiers
static

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

Inheritance

  • object
  • HtmlContentSafety

Methods

public static OfficeContentSafetyReport Inspect(string html, OfficeContentSafetyOptions? options = null) #

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) #

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) #

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) #

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