Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter trudiecalling

    (@trudiecalling)

    That’s replacing the “&” character with & a m p ; — forgot that would not display.

    When you output X/HTML to a browser you should encode ampersands:
    https://example.com/?foo=a&bar=b
    should be sent as:
    https://example.com/?foo=a & a m p =b (without spaces!)

    Thread Starter trudiecalling

    (@trudiecalling)

    No, that’s the problem. With the encoded ampersand, the links don’t work. So I have to UN-encode them. Is there a way to turn encoding off? WordPress is doing it automatically.

    Where (post/page/etc) and how are you adding the links? Are you using the WISYWIG editor to create the link or doing it in raw HTML?

    Are you copy/pasting the link into a post as you did above? If so then WordPress treats it as text and will escape it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress keeps substituting & in URLs that have &’ is closed to new replies.