Share via


TagHelperDescriptorFactory.ToHtmlCase(String) Method

Definition

Converts from pascal/camel case to lower kebab-case.

public:
 static System::String ^ ToHtmlCase(System::String ^ name);
public static string ToHtmlCase (string name);
static member ToHtmlCase : string -> string
Public Shared Function ToHtmlCase (name As String) As String

Parameters

name
String

Returns

Examples

SomeThing => some-thing
capsONInside => caps-on-inside
CAPSOnOUTSIDE => caps-on-outside
ALLCAPS => allcaps
One1Two2Three3 => one1-two2-three3
ONE1TWO2THREE3 => one1two2three3
First_Second_ThirdHi => first_second_third-hi

Applies to