JHtmlBehavior::highlighter
Highlight some words via Javascript.
Signature
public function highlighter(array
$terms,
[string
$start = 'highlighter-start',
[string
$end = 'highlighter-end',
[string
$className = 'highlight',
[string
$tag = 'span']]]] )
Parameters
-
$terms
- Array of words that should be highlighted.
-
$start
- ID of the element that marks the begin of the section in which words
-
$end
- ID of the element that end this section.
-
$className
- Class name of the element highlights are wrapped in.
-
$tag
- Tag that will be used to wrap the highlighted words.
Returns
- void