Wrap()
Wraps text so that each line has a specified maximum number of characters.
Wrap( string=string, limit=number, strip=boolean );
Returns: String
Examples
long_string = "A light-weight dynamic scripting language for the JVM that enables the rapid development of simple to highly sophisticated web applications.";
echo( "<pre>" & wrap( long_string, 20 ) & "</pre>" );
See also
- Strings
- string.wrap()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)