Click or drag to resize

StringUtilsToCssClass Method

Converts a string to a valid CSS class name string by removing all characters except for a-z, A-Z, 0-9, "-", and "_". The result is a string suitable for use as a CSS class name.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string ToCssClass(
	string s
)

Parameters

s
Type: SystemString
The string to convert.

Return Value

Type: String
The string with offending characters removed.
See Also