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