User Profile

Collapse

Profile Sidebar

Collapse
Amsville
Amsville
Last Activity: Jan 10 '08, 09:52 PM
Joined: May 30 '07
Location: Deerlijk,West-Flanders,Belguim
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Amsville
    replied to change nl to <br>
    Thanks acoder !

    Also thanks for the reply, but it doesnt work :(
    Still no line breaks in HTML.

    Greets !
    See more | Go to post

    Leave a comment:


  • Amsville
    started a topic change nl to <br>

    change nl to <br>

    Hi,

    I have never written CF in my life, but I have to make a small change to a CF project (written by someone else of course).
    The CF app writes text away in the db, but the line breaks dont work in HTML, so I need to find an similar function of PHP's nl2br().
    I tryed (as posted earlier on this forum) to replace the CF line break char with '<br>' this way :
    <cfset #text# = replace(#sessio n.uploadFile#,' #Chr(10)##Chr(1 3)#','<br>',all )>...
    See more | Go to post
No activity results to display
Show More
Working...