HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/actionview-6.1.4.1/ri/ActionView/Helpers/TextHelper/highlight-i.ri
U:RDoc::AnyMethod[iI"highlight:ETI".ActionView::Helpers::TextHelper#highlight;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"PHighlights one or more +phrases+ everywhere in +text+ by inserting it into ;TI"ia <tt>:highlighter</tt> string. The highlighter can be specialized by passing <tt>:highlighter</tt> ;TI"`as a single-quoted string with <tt>\1</tt> where the phrase is to be inserted (defaults to ;TI"e<tt><mark>\1</mark></tt>) or passing a block that receives each matched term. By default +text+ ;TI"^is sanitized to prevent possible XSS attacks. If the input is trustworthy, passing false ;TI"5for <tt>:sanitize</tt> will turn sanitizing off.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"3highlight('You searched for: rails', 'rails')
;TI"/# => You searched for: <mark>rails</mark>
;TI"
;TI"7highlight('You searched for: rails', /for|rails/)
;TI"<# => You searched <mark>for</mark>: <mark>rails</mark>
;TI"
;TI"Chighlight('You searched for: ruby, rails, dhh', 'actionpack')
;TI"-# => You searched for: ruby, rails, dhh
;TI"
;TI"Xhighlight('You searched for: rails', ['for', 'rails'], highlighter: '<em>\1</em>')
;TI"4# => You searched <em>for</em>: <em>rails</em>
;TI"
;TI"`highlight('You searched for: rails', 'rails', highlighter: '<a href="search?q=\1">\1</a>')
;TI"?# => You searched for: <a href="search?q=rails">rails</a>
;TI"
;TI"ehighlight('You searched for: rails', 'rails') { |match| link_to(search_path(q: match, match)) }
;TI"?# => You searched for: <a href="search?q=rails">rails</a>
;TI"
;TI"bhighlight('<a href="javascript:alert(\'no!\')">ruby</a> on rails', 'rails', sanitize: false)
;TI"J# => <a href="javascript:alert('no!')">ruby</a> on <mark>rails</mark>;T:@format0:
@fileI"+lib/action_view/helpers/text_helper.rb;T:0@omit_headings_from_table_of_contents_below00I"
found;T[I""(text, phrases, options = {});T@*FI"TextHelper;TcRDoc::NormalModule00