How to remove <br> from comment field and make a break appear instead

Discussion in 'PHP' started by Andy_ameed, May 2, 2010.

  1. #1
    Hi, In my comment box <br> is appearing when start a new line. can anyone tell me how to remove the <br> part and make it start in a new line.


    here is how is see it

    <br>hi,
    <br>how are u?

    I want that <br> to invisible.

    Thanks
     
    Andy_ameed, May 2, 2010 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $new = str_replace('<br>', "\n", $old);
    PHP:
     
    JAY6390, May 2, 2010 IP
  3. Andy_ameed

    Andy_ameed Active Member

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Thanks for the help. It worked perfectly...
     
    Andy_ameed, May 2, 2010 IP
  4. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No problem :)
     
    JAY6390, May 2, 2010 IP