Click or drag to resize
SearchHelperHighlight Method
Highlight input text with dependence on current search key words.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 12.0.0
Syntax
C#
public static string Highlight(
	SearchResultItem resultItem,
	string text,
	string startTag,
	string endTag
)

Parameters

resultItem
Type: CMS.SearchSearchResultItem
Search result to return highlighted text for.
text
Type: SystemString
Input text
startTag
Type: SystemString
Starting HTML tag
endTag
Type: SystemString
Ending HTML tag

Return Value

Type: String
See Also