Click or drag to resize
HTMLHelperStripTags Method (String, Boolean, String)
Remove HTML tags from text.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static string StripTags(
	string htmlText,
	bool replaceEntities = true,
	string tagReplacement = ""
)

Parameters

htmlText
Type: SystemString
HTML text
replaceEntities (Optional)
Type: SystemBoolean
True if replace special entities
tagReplacement (Optional)
Type: SystemString
Replacement for HTML tags - inner of tag is string "$2"

Return Value

Type: String
See Also