Chr (13) is a carriage return; Chr (10) is a line break; chr (32) is a space character; chr (13) is a carriage return; 9 \ 34 is a tab, not sure?
(Example: replace all carriage returns with <br/>
# Replace (foo, Chr (13), "<br/>", "ALL ")#
)
All tables about ASCII code: http://www.asciitable.com
<Cfscript>
/**
* An enhanced Article section Formatting Function
* Use) & nbsp; replace the TAB, supporting multiple systems
* Rewrite and multiOS support by Nathan Dintenfas.
*
* @ Param string The string to format. (Required)
* @ Return Returns a string.
* @ Author Ben Forta (ben@forta.com)
* @ Version 3, June 26,200 2
*/
Function Paragrap1hFormat2 (str ){
// First make Windows style into Unix style
Str = replace (str, chr (13) & chr (10), chr (10), "ALL ");
// Now make Macintosh style into Unix style
Str = replace (str, chr (13), chr (10), "ALL ");
// Now fix tabs
Str = replace (str, chr (9), "& nbsp;", "ALL ");
// Now return the text formatted in HTML
Return replace (str, chr (10), "<br/>", "ALL ");
}
</Cfscript>