Package

ViewHelpers

ViewHelper Documentation

v:format.wordWrap

Wordwrap: Wrap a string at provided character count

Wraps a string to $limit characters and at $break character while maintaining complete words. Concatenates the resulting strings with $glue. Code is heavily inspired by Codeigniter's word_wrap helper.

Arguments

subject string

Text to wrap

limit integer

Maximum length of resulting parts after wrapping

break string

Character to wrap text at

glue string

Character to concatenate parts with after wrapping

ViewHelper Resources

Schema Resources