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
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#108394 Ampersand being stripped in iFrame

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 29 July 2021 11:50 BST

pixelperfectcreative
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.

Ryan
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.

Ryan Demmer

Lead Developer / CEO / CTO

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

pixelperfectcreative
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!

Ryan
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

Ryan Demmer

Lead Developer / CEO / CTO

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