highlight(text, phrases, options = {})
Instance Public methods
Highlights one or more phrases everywhere in text
by inserting it into a :highlighter string. The highlighter
can be specialized by passing :highlighter as a single-quoted
string with \1 where the phrase is to be inserted (defaults to
'<mark>1</mark>')
highlight('You searched for: rails', 'rails')
# => You searched for: <mark>rails</mark>
highlight('You searched for: ruby, rails, dhh', 'actio