Class
HtmlContentSafety
OfficeIMO.Html
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
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
Returns
OfficeContentSafetyReportpublic static OfficeContentSafetyReport InspectFile(string filePath, OfficeContentSafetyOptions? options = null) #Inspects a UTF-8 HTML file.
Parameters
- filePath string
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
Returns
OfficeContentSafetyReportpublic 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
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
Returns
OfficeContentCleanupResultpublic static OfficeContentCleanupResult RemoveSelectedFile(string inputPath, string outputPath, OfficeContentCleanupSelection selection, OfficeContentSafetyOptions? options = null) #Atomically writes an explicitly cleaned HTML artifact.
Parameters
- inputPath string
- outputPath string
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
Returns
OfficeContentCleanupResult