Comma Delimited List and HTML Entities

Discussion in 'Programming' started by crazyFoo, Apr 25, 2008.

  1. #1
    I am relatively new to ColdFusion, and I am migrating from a Java and PHP background.

    I have a comma delimited list of names. I would like to replace all of the commas with the <br /> tag. When I use the replace function, ColdFusion automatically turns the <br /> tag into &lt;br /&gt;

    How can I best replace all of the commas with an html <br /> tag?

    Thanks in advance.
     
    crazyFoo, Apr 25, 2008 IP
  2. apmsolutions

    apmsolutions Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is a simple function you can use to do this, instead of replace:

    ListChangeDelims(list, new_delimiter [, delimiters ])
     
    apmsolutions, Apr 30, 2008 IP