Converting CRs

Results 1 to 2 of 2

Thread: Converting CRs

  1. #1
    Join Date
    Dec 1969

    Default Converting CRs

    Is there a function that will convert cariage returns entered into a field and pushed into a database into line breaks in HTML? <BR><BR>I believe the PHP equivalent is NL2BR.<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default REPLACE

    VBS&#039;s Replace will replace most anything with most anything else.<BR><BR>text = Replace( text, vbCR, "&lt;BR&#062;" & vbCR ) <BR><BR>That leaves the CR in place and inserts the &lt;BR&#062; in front of it. That&#039;s a nice feature if you want to be able to do "View &#124 Source" and have readable output.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts