Click or drag to resize
TextHelperTrimEndingWord Method
Removes specified word from the end of the text (if the text ends with the word). Note: Ignore case enabled.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string TrimEndingWord(
	string text,
	string word
)

Parameters

text
Type: SystemString
Input text
word
Type: SystemString
Text to be removed

Return Value

Type: String
See Also