![]()
Calls
annotateFn for each occurrence of a search term in text nodes
under node . Returns the number of hits.
Arguments:
Returns: boolean
Whether any terms were annotated.
|
code » | ||||||||
![]()
Recursive helper function.
Arguments:
Returns: boolean
Whether any terms were annotated.
|
code » | ||||||||
Annotates occurrences of query terms in plain text. This process consists of
identifying all occurrences of all query terms, calling a provided function
to get the appropriate replacement HTML for each occurrence, and
HTML-escaping all the text.
Arguments:
Returns: goog.html.SafeHtml
The HTML equivalent of
text with terms
annotated, or null if the text did not contain any of the terms.
|
code » | ||||||||
Annotates occurrences of query terms in plain text. This process consists of
identifying all occurrences of all query terms, calling a provided function
to get the appropriate replacement HTML for each occurrence, and
HTML-escaping all the text.
Arguments:
Returns: goog.html.SafeHtml
The HTML equivalent of
text with terms
annotated, or null if the text did not contain any of the terms.
|
code » | ||||||||
Converts terms to lowercase.
|
code » |