StringExtensions.

SanitizeHtmlIdAttribute(string) Method

Summary

Sanitizes a string to be a valid HTML ID.

Syntax

public static string SanitizeHtmlIdAttribute(this string input)

Parameters

Name Type Description
input string String which should be sanitized.

Return Value

Type Description
string input as valid HTML ID.