# StripCR

Returns string with all carriage return characters removed.

See also ParagraphFormat.

### Syntax

    StripCR(string)

##### string

String being formatted.

### Usage

Function StripCR is useful for preformatted HTML display of data (PRE) entered into TEXTAREA fields.

### Example

    <!--- This example shows StripCR --->
    <HTML>
    <HEAD>
    <TITLE>
    StripCR Example
    </TITLE>
    </HEAD>

    <BODY BGCOLOR=silver>
    <H3>StripCR Example</H3>

    <P>Function StripCR is useful for preformatted HTML
    display of data (PRE) entered into TEXTAREA fields.

    <CFIF IsDefined("FORM.myTextArea")>

    <PRE>
    <CFOUTPUT>#StripCR(FORM.myTextArea)#</CFOUTPUT>
    </PRE>
    </CFIF>
    <!--- use #Chr(10)##Chr(13)# to simulate a line feed/carriage
    return combination; i.e, a return --->
    <FORM ACTION="stripcr.cfm" METHOD="POST">
    <textArea NAME="MyTextArea" cols="35" ROWS=8>
    This is sample text and you see how it
    scrolls<CFOUTPUT>#Chr(10)##Chr(13)#</CFOUTPUT>
    From one line <CFOUTPUT>#Chr(10)##Chr(13)##Chr(10)##Chr(13)#</CFOUTPUT>
    to the next
    </textArea>
    <INPUT TYPE="Submit" NAME="Show me the HTML version">
    </FORM>

    </BODY>
    </HTML>