mySobek Home   |   Help
Skip Navigation Links.
Expand <a href='https://sobekrepository.org/sobekcm' title='Sobek home page'>Project Home</a>Project Home
Expand <a href='https://sobekrepository.org/help' title='Online user help'>User Help</a>User Help
Expand <a href='https://sobekrepository.org/sobekcm/technical' title='Sobek home page'>Technical Help</a>Technical Help
Expand <a href='https://sobekrepository.org/software' title='Center for downloading all SobekCM-related software'>Download Center</a>Download Center
Training Videos
Collapse <a href='https://sobekrepository.org/codehelp' title='Details on each of the different classes, interfaces, properties, etc..'>Code Details</a>Code Details
MISSING BANNER
Code Details >> Library >> Text_Search_Term_Highlighter >> Hightlight_Term_In_HTML Method >> Hightlight_Term_In_HTML (String, List(String), String, String)

Text_Search_Term_Highlighter.Hightlight_Term_In_HTML Method (String, List(String), String, String)



Checks the source html text for terms to highlight and returns the text, including any highlighting


Namespace: SobekCM.Library
Assembly: SobekCM_Library (in SobekCM_Library.dll) Version: 4.10.0.0 (4.10.0.0)

Syntax

C#
public static string Hightlight_Term_In_HTML(
	string Source_Text,
	List<string> Search_Terms,
	string Highlight_Start,
	string Highlight_End
)

Parameters

Source_Text
Type: System..::..String
Source text which may contain terms to highlight
Search_Terms
Type: System.Collections.Generic..::..List<(Of <(<'String>)>)>
Terms to highlight in the source text
Highlight_Start
Type: System..::..String
HTML to use at the beginning of a span to highlight
Highlight_End
Type: System..::..String
HTML to use at the end of a span to highlight

Return Value

Type: String
Source text including highlights

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )