Support » Plugin: Remote Content Shortcode » ampersand issue

  • Resolved tproli

    (@tproli)



    Thanks for the module, works a treat!

    However, using urls like “http://domain.com/site=1&lang=en” works only if you write this into the HTML part of the TinyMCE and save it there. When switching to the graphical editor, on save “&” will be replaced by “&amp” (plus “;” but this site strips it), and because of this the remote server doesn’t get the parameter (“lang=en” in the example above). Perhaps the plugin could replace them before passing to curl.

    https://wordpress.org/plugins/remote-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author doublesharp

    (@doublesharp)

    Hi @tproli, apologies for not seeing this until now. This was a perpetual annoyance to me too, and I finally fixed it in the latest version 1.4. The shortcode checks the URL to see if it contains “&” and if so converts it back to “&” before making the request. If you flip between the visual/text editor it will still show up as HTML encoded, but it should work just fine.

    Thanks!

    Plugin Author doublesharp

    (@doublesharp)

    Ha, it’s even a pain to write an example of how the encoding is being dealt with because of the encoding of the form content here 🙂

    tproli

    (@tproli)

    Great, thanks! I had to think for minute about what was this issue about but finally figured out 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ampersand issue’ is closed to new replies.