# File lib/action_view/helpers/text_helper.rb, line 111
      def highlight(text, phrases, *args)
        options = args.extract_options!
        unless args.empty?
          options[:highlighter] = args[0] || '<strong class="highlight">\1</strong>'
        end
        options.reverse_merge!(:highlighter => '<strong class="highlight">\1</strong>')

        if text.present? && phrases.present?
          match = Array(phrases).map { |p| Regexp.escape(p) }.join('|')
          text = text.to_str.gsub(/(#{match})(?!(?:[^<]*?)(?:["'])[^<>]*>)/i, options[:highlighter])
        end
        text = sanitize(text) unless options[:sanitize] == false
        text
      end