Click or drag to resize
HTMLHelperRemoveComments Method
Remove HTML comments from given text.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static string RemoveComments(
	string htmlText,
	string commentsReplacement = ""
)

Parameters

htmlText
Type: SystemString
HTML text
commentsReplacement (Optional)
Type: SystemString
Replacement for HTML comments

Return Value

Type: String
See Also