Slashes when using speech marks

Discussion in 'PHP' started by CuBz, Oct 27, 2007.

  1. #1
    when i try to type a " or a ' it shows as this "/ and '/

    It only does this in forum and sent messages

    Please let me know how to fix this

    I have tried using a function to replace "/ with " but it doesnt work

    Thanks
     
    CuBz, Oct 27, 2007 IP
  2. Fash

    Fash Peon

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you sure it's not \" and \'? If that's the case, just use stripslashes().
     
    Fash, Oct 27, 2007 IP
  3. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    well how would i user stripslashes wit replace function

    ".replace()."
     
    CuBz, Oct 28, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    nico_swd, Oct 28, 2007 IP