You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)

Please post your question in the Forum and we will get back to you as soon as we can.

  Wednesday, 28 July 2021
  3 Replies
  780 Visits
Hi there, I am trying to use an iFrame that has an ampersand in it. Something like this
<iframe src="https://system.12345.com/cape/website/EventDetails.aspx?WebEventId=2021&resize=true";></iframe>

But it changes the & to be &
<iframe src="https://system.12345.com/cape/website/EventDetails.aspx?WebEventId=2021_&resize=true";></iframe>

Thanks in advance for your help.
more than a month ago
·
#108395
The form has mangled you code example, but I assume you are saying that the & is being converted to an & amp; ?

If this is correct, then this is how it is supposed to be, as attribute values must always be encoded.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#108396
Thanks for the quick response. Yes, it made that change.
This breaks the iframe and so I was wondering if there was a workaround.
Thanks!
more than a month ago
·
#108397
For the record, the script processing the iframe's content is at fault, as it should take into account the encoded url value, as this is the HTML standard.

As a workaround, in the Editor Global Configuration, add a Custom Configuration Variable with the Key set to cleanup_pluginmode and Value set to true, eg:

https://cdn.joomlacontenteditor.net/tmp/108394-ampersand-being-stripped-in-iframe.jpg

Just because you're not paranoid doesn't mean everybody isn't out to get you.

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!