HTML trouble with my site.

Discussion in 'HTML & Website Design' started by Vertigo51, Oct 27, 2006.

  1. #1
    I'm trying to edit my site. Everything is fine, except when I use apostrophes.

    For instance, "We're expanding our reach", shows up on the web page as:

    "We\re expanding our reach." This happens everytime I use an apostrophe.

    Anyone have any helpful info? Spent all last night googling "Html tags", but couldn't find anything related to apostrophes.
     
    Vertigo51, Oct 27, 2006 IP
  2. Yinten

    Yinten Active Member

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Since HTML uses " " to denote elements, in a way, like <div class="whatever">, it separates what is writing from real HTML by using a \ afterwards.

    If your coding entirely correct? It shouldn't have that problem if it is. If not, you'll have to do "\ after your coding to make it show up as " on your website.
     
    Yinten, Oct 27, 2006 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    Are you using a blog or other WYSIWYG editor?

    It sounds like php is adding slashes to your input and not removing them when the content is displayed. If you have content stored in a database it is common for php to use addslashes() when data is put into the database. It souds like your script is not using stripslashes() when the data is parsed back to html from the database.
     
    jestep, Oct 27, 2006 IP
  4. mirturk

    mirturk Active Member

    Messages:
    1,635
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    90
    #4
    If you want send us code and we solve problem and after wsend to you.
     
    mirturk, Oct 27, 2006 IP