arg_separator.output and & and & (4 posts)

  1. cynthiablue
    Posted 8 years ago #

    I am attempting to verify my blog through the http://validator.w3.org/

    It gives me a great deal of errors because instead of using th & a m p ; (no spaces) in a php url that passes variables, it puts in only the & .

    I have been reading and googling all night to see how I can fix this.

    It's only in my text widgets. If I go in and specify the & amp ;, then I save it, it saves that way okay to the DB, I can see it both in the DB and when I validate it, it validates fine.

    However, if I go to the widgets and resave, it resaves it to the DB with just a & and then doesn't validate anymore.

    So why is wordpress and the widgets reinterpreting it as &?
    I would really love this to validate.

    Please help

  2. tsguitar
    Posted 8 years ago #

    If you are inputing URLs into a text widget, just make sure you type '& amp;' instead of '&'. Doesn't that solve your trouble?

  3. ccoupe
    Posted 8 years ago #

    IMHO, you don't want to spend much of your life figuring out why WP doesn't validate. The poor & get's so many different treatments from one version to another, in some text fields/boxes and not for others and not for version x.y unless condition Z applies.

    It can also validate fine and versions of IE won't like it.

  4. cynthiablue
    Posted 8 years ago #

    If I type & amp ; into the widget box and save, yes it saves okay and displays okay. However, if I go back in and make any change to any widget, it changes it back for me to just &.. so in essence I'd have to go in and change all & to & amp ; each time I change one tiny thing in one widget. Which really is a pain the rear since I have a lot of links that include that char.

    I might look into this validation a bit more... but if it's too much of a pain I will just give it up.

Topic Closed

This topic has been closed to new replies.

About this Topic