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.

#101634 jce adding "amp" in the code after saving

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 Wednesday, 06 November 2019 19:46 GMT

joki
Hi to all,

my question is probably a simple thing for the pro´s.

I´m trying to add a Iframe with a specific Adress. Thats works wonderfull. My Problem is that aftersaving the File, jce always adds " amp" to the adress.

original:

id=c7aa3a5b79b986e0a16a9c1ae8e4d566

then i have to add: &category=COC

it should look like this after saving: id=c7aa3a5b79b986e0a16a9c1ae8e4d566&category=COC

But it came out like: id=c7aa3a5b79b986e0a16a9c1ae8e4d566&category=COC

someone knows how i can avoide that JCe is adding "amp" in the code.?

thanks

Michael

Ryan
The rules of HTML require that all amersand characters in attribute values , eg: <a href="https://www.joomlacontenteditor.net/"> are encoded. Please see - https://stackoverflow.com/questions/3705591/do-i-encode-ampersands-in-a-href - for an explanation. As JCE always attempts to obey the rules and create valid HTML, it encodes ampersands. That said, some badly written plugins attempt to parse URL values by splitting them at the & character, which causes issues with encoded ampersands. If this is the case, add:

cleanup_pluginmode:true
to the Custom Configuration Variables field in the Editor Global Configuration. https://cdn.joomlacontenteditor.net/tmp/101634-jce-adding-amp-in-the-code-after-saving.jpg

Ryan Demmer

Lead Developer / CEO / CTO

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

joki
Hi Ryan,

understood. I added your Code for trying it out.
But still jce adds amp;

any idea?
regards
Michael

Ryan
This is working in my tests. Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

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