CreateValidClass - removes characters from Module/Tab names which are invalid
for use as an XHTML class attribute / CSS class selector value and optionally
prepends the letter 'A' if the first character is not alphabetic. This differs
from CreateValidID which replaces invalid characters with an underscore
and replaces the first letter with an 'A' if it is not alphabetic
Namespace: DotNetNuke.CommonAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string CreateValidClass( string inputValue, bool validateFirstChar ) |
Visual Basic |
---|
Public Shared Function CreateValidClass ( inputValue As String, validateFirstChar As Boolean ) As String |
Parameters
- inputValue
- Type: System..::..String
String to use to create the class value
- validateFirstChar
- Type: System..::..Boolean
If set true, validate whether the first character is alphabetic and, if not, prepend the letter 'A' to the returned value