Click or drag to resize
HTMLHelperReformatHTML Method
Reformats the HTML code indentation.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string ReformatHTML(
	string inputText,
	string indentationString = "",
	int maxIndent = 2147483647
)

Parameters

inputText
Type: SystemString
Input text
indentationString (Optional)
Type: SystemString
Indentation string, "\t" is used by default
maxIndent (Optional)
Type: SystemInt32
Maximum indentation level, Int32.MaxValue is used by default

Return Value

Type: String
See Also