SearchHelperHighlight Method |
Highlight input text with dependence on current search key words.
Namespace: CMS.SearchAssembly: CMS.Search (in CMS.Search.dll) Version: 13.0.131
Syntax 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:
StringSee Also