• Hi, I get this weird validation error on my WordPress site. In my widget I have this link:

    <a href="https://www.example.com/blabla?showorg=12345-1234&language=swe" target="_blank"><img src="https://www.example.com/blabla/blabla?org=12345-1234&language=swe&product=psa&fontcolor=b" style="border:0;" alt="XX"/></a>

    As you can see, the link already contains “&” because I have replaced the “&” that was there before in order to get a green validation. But it won’t change on my site, the ampersands are still there when I check the source. Is WordPress ignoring my “&” and converting them to “&”? Can I stop this somehow?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hmmm.. this editor it borked as it converts the & amp; strings into just “&” even when using the code backticks. So I can’t see what you really did.

    Anyway, with the WP editor, might try disabling the Visual Editor in your profile and edit the post that way to check the “&”s.

    Thread Starter cryx

    (@cryx)

    Haha oops, here it comes:

    <img src=”https://www.example.com/blabla/blabla?org=12345-1234&amp; amp;language=swe& amp;product=psa& amp;fontcolor=b” style=”border:0;” alt=”XX”/> (without spaces)

    This is what I’m using, but in my source code it just says “&” instead. It’s like it is converting it. I want it to stay with the “& amp;”s

    Well, mine isn’t doing that. Do you have any plug-ins that interact with the editor somehow? Something might be interfering.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation error – ampersands in links’ is closed to new replies.