API Reference
Class
HtmlContentSafety
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:
OfficeContentSafetyReportInspects HTML using OfficeIMO's computed CSS cascade.
Parameters
- html System.String
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null
public static OfficeContentSafetyReport InspectFile(String filePath, OfficeContentSafetyOptions options = null) #Returns:
OfficeContentSafetyReportInspects a UTF-8 HTML file.
Parameters
- filePath System.String
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null
public static OfficeContentCleanupResult RemoveSelected(String html, OfficeContentCleanupSelection selection, OfficeContentSafetyOptions options = null) #Returns:
OfficeContentCleanupResultRemoves only exact, current findings selected by the caller and then reinspects the result.
Parameters
- html System.String
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null
public static OfficeContentCleanupResult RemoveSelectedFile(String inputPath, String outputPath, OfficeContentCleanupSelection selection, OfficeContentSafetyOptions options = null) #Returns:
OfficeContentCleanupResultAtomically writes an explicitly cleaned HTML artifact.
Parameters
- inputPath System.String
- outputPath System.String
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object