ParagraphFormat()
Formats the carriage returns in a string to a HTML alternatives
ParagraphFormat( string=string );
Returns: String
| Argument | Description |
|---|---|
|
string
string,
required
|
edit
A string or a variable that contains one |
Examples
edit paragraphs = "This is your brain.#chr(13)#This is your brain on Lucee.";
echo(ParagraphFormat(paragraphs));
See also
- Strings
- Formatting
- HTML
- string.paragraphFormat()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)