Table of Contents

Class SecurityUtilities

Namespace
Steeltoe.Common
Assembly
Steeltoe.Common.dll

Helpers for compliance with security scans

public static class SecurityUtilities
Inheritance
SecurityUtilities
Inherited Members

Methods

SanitizeInput(string)

Remove line endings and HTML-encode strings. Useful for logging (potentially) user-entered data

public static string SanitizeInput(string inputString)

Parameters

inputString string

Some string to sanitize

Returns

string

HTML-encoded version of original string with CR and LF removed