Find and Highlight Text within HTML.

The findText is case-insensitive.

Syntax

ISHtmlUtilities.HighlightText(html, findText, [cssStyle])

Parameters

NameTypeOptionalByRefDescription
html String The HTML to search.
findText String The Text to Find.
cssStyle String Optional The CSS Style to apply to the HTML span that will be inserted around the found text. If omitted, a value of color:black;background-color:yellow is assumed.

Return Value

String

A String value.

Member of:
ISHtmlUtilities
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0