HTMLHelperStripTags Method (String, Boolean, String) |
Remove HTML tags from text.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntaxpublic 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