highlight()
Description
Highlights the phrase(s) everywhere in the text if found by wrapping it in a span tag.
Function Syntax
highlight(text, phrases [, class ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
text |
string |
Yes | |
Text to search. |
phrases |
string |
Yes | |
List of phrases to highlight. |
class |
string |
No | highlight |
Class to use in span tags surrounding highlighted phrase(s). |
Examples
#highlight(text="You searched for: Wheels", phrases="Wheels")#
-> You searched for: <span class="highlight">Wheels</span>
