Whatever message this page gives is out now! Go check it out!
Wrap(string, limit[, strip])Parameter | Description |
string | String or variable that contains one. The text to wrap. |
limit | Positive integer maximum number of characters to allow on a line. |
strip | Boolean value specifying whether to remove all existing newline and carriage return characters in the input string with spaces before wrapping the text. The default value is False. |
<cfscript>
inputText="This is an example of a text message that we want to wrap. It is rather long and needs to be broken into shorter lines."
writeOutput(Wrap(inputText, 5,0))
</cfscript>