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 MX, 2nd Edition 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.