diff options
| -rw-r--r-- | background_scripts/completion.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 8b30dc43..beb7003a 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -71,8 +71,7 @@ class Suggestion # Wraps each occurence of the query terms in the given string in a <span>. highlightTerms: (string) -> ranges = [] - # Escape the terms before highlighting - escapedTerms = @queryTerms.map (oldTerm) -> Utils.escapeHtml(oldTerm) + escapedTerms = @queryTerms.map (term) -> Utils.escapeHtml(term) for term in escapedTerms @pushMatchingRanges string, term, ranges |
