<cfset memovalue = replace(memovalue, chr(10), "<br>", "all")>

David

> -----Original Message-----
> From: Jay Sudowski [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 26, 2000 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: Replacing crlf with <br>
>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_01E6_01BFC738.EB595720
> Content-Type: text/plain;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hi -
>
> I need to replace the crlf characters with the <br> tag so that line =
> breaks people enter while editing database content show up when they are =
> displayed.  I found a custom tag that will do this, but I'd like to =
> avoid calling it multiple times on the same page?
>
> Doing this should be possible with the replace function (or so I think), =
> but I'm not sure how to go about it.  Any ideas?
>
> Thanks,
>
> Jay
>
> ------=_NextPart_000_01E6_01BFC738.EB595720
> Content-Type: text/html;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>Hi -</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>I need to replace the crlf characters =
> with the=20
> &lt;br&gt; tag so that line breaks people enter while editing database =
> content=20
> show up when they are displayed.&nbsp; I found a custom tag that will do =
> this,=20
> but I'd like to avoid calling it multiple times on the same =
> page?</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Doing this should be possible with the =
> replace=20
> function (or so I think), but I'm not sure how to go about it.&nbsp; Any =
>
> ideas?</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Jay</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_01E6_01BFC738.EB595720--
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to