Home

# Library goog.dom.annotate

Function Summary
| `annotateTerms(?Node node, ?Array terms, ?Function annotateFn, <Any Type> opt_ignoreCase, ?Array.<string>= opt_classesToSkip, number= opt_maxMs) ⇒ boolean` Calls {@code annotateFn} for each occurrence of a search term in text nodes under {@code node}. Returns the number of hits.
| `annotateTermsInNode_(?Node node, ?Array terms, ?Function annotateFn, <Any Type> ignoreCase, ?Array.<string> classesToSkip, number stopTime, number recursionLevel) ⇒ boolean` Recursive helper function.
| `annotateText(string text, ?Array terms, ?Function annotateFn, <Any Type> opt_ignoreCase) ⇒ ?string` 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.
| `helpAnnotateText_(string text, ?Array terms, ?Function annotateFn, <Any Type> ignoreCase) ⇒ ?string` 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.
| `lowercaseTerms_(?Array terms) ⇒ ?Array` Converts terms to lowercase.