Class SecurityUtilities
Helpers for compliance with security scans
Inheritance
System.Object
SecurityUtilities
Namespace: Steeltoe.Common
Assembly: Steeltoe.Common.dll
Syntax
public static class SecurityUtilities : object
Methods
| Edit this page View SourceSanitizeInput(String)
Remove line endings and HTML-encode strings. Useful for logging (potentially) user-entered data
Declaration
public static string SanitizeInput(string inputString)
Parameters
Type | Name | Description |
---|---|---|
System.String | inputString | Some string to sanitize |
Returns
Type | Description |
---|---|
System.String | HTML-encoded version of original string with CR and LF removed |