ActionView::Helpers::TextHelper
word_wrap
API docs (Rails 8.1.4.1) ↗def word_wrap(text, line_width: 80, break_sequence: "\n")
Description
Returns the string with line breaks inserted so that each line fits within a given length.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params