API Reference

Class

HtmlContentSafety

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
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) #
Returns: OfficeContentSafetyReport

Inspects HTML using OfficeIMO's computed CSS cascade.

Parameters

html System.String requiredposition: 0
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null optionalposition: 1
public static OfficeContentSafetyReport InspectFile(String filePath, OfficeContentSafetyOptions options = null) #
Returns: OfficeContentSafetyReport

Inspects a UTF-8 HTML file.

Parameters

filePath System.String requiredposition: 0
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null optionalposition: 1
public static OfficeContentCleanupResult RemoveSelected(String html, OfficeContentCleanupSelection selection, OfficeContentSafetyOptions options = null) #
Returns: OfficeContentCleanupResult

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

Parameters

html System.String requiredposition: 0
selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection requiredposition: 1
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null optionalposition: 2
public static OfficeContentCleanupResult RemoveSelectedFile(String inputPath, String outputPath, OfficeContentCleanupSelection selection, OfficeContentSafetyOptions options = null) #
Returns: OfficeContentCleanupResult

Atomically writes an explicitly cleaned HTML artifact.

Parameters

inputPath System.String requiredposition: 0
outputPath System.String requiredposition: 1
selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection requiredposition: 2
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null optionalposition: 3