ActionView::Helpers::TextHelper
highlight
API docs (Rails 8.1.4.1) ↗def highlight(text, phrases, options = {}, &block)
Description
Returns the string with the matching parts wrapped in <mark>.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params