stripCR

Deletes return characters from a string.

stripCR(String) → returns string

Argument Reference

String string
Required

A string or a variable that contains one

Examples
Sample code invoking the stripCR function

x = 'A' & chr(13) & 'B' & chr(13); 
 y = stripcr( x ); 
 writeoutput( 'Original: ' & x & ' Length: #len(x)#<br>' ); 
 writeoutput( 'Stripped: ' & y & ' Length: #len(y)#' );

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub