Name

StripCR

Synopsis

StripCR(string)

Returns string with all carriage returns removed. Example:

<CFSET MyString="This is a paragraph of text with carriage returns hardcoded.#Chr(10)##Chr(13)#As you can see, this is a new line.
#Chr(10)##Chr(13)#This is a new line too.">

<CFOUTPUT>
<B>Original String with Carriage Returns:</B><BR>
<PRE>
#MyString#
</PRE>
<P>
<B>String with Carriage Returns Removed:</B><BR>
<PRE>
#StripCR(MyString)#
</PRE>
</CFOUTPUT>

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.