JCE adding characters to my html

This forum is for general questions about extensions for Joomla! 5.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
mjsacauskis
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Apr 03, 2024 3:56 pm

JCE adding characters to my html

Post by mjsacauskis » Sat Apr 06, 2024 5:19 pm

When I edit code in JCE code mode when I go to save it characters are added to the codeL

<script src="https://maps.googleapis.com/maps/api/js ... vzw1zlexkq
&amp;callback=mymap">

It adds the &amp; to the code which breaks it. I've tried several things to turn it off. Turning off html validation and setting cleanup_pluginmode = true.

This is really reeking havoc in my code is there away to fix this or another editor that doesn't do this?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31019
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: JCE adding characters to my html

Post by Per Yngve Berg » Sat Apr 06, 2024 5:36 pm

&amp; is the html encoding og the amp (&) character.

should not be used with UTF-8.

mjsacauskis
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Apr 03, 2024 3:56 pm

Re: JCE adding characters to my html

Post by mjsacauskis » Sat Apr 06, 2024 5:39 pm

Per Yngve Berg wrote:
Sat Apr 06, 2024 5:36 pm
&amp; is the html encoding og the amp (&) character.

should not be used with UTF-8.
Can you elaborate?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44132
Joined: Sat Apr 05, 2008 9:58 pm

Re: JCE adding characters to my html

Post by Webdongle » Sat Apr 06, 2024 6:00 pm

&amp; seems to work ok generally. Please post the original code (before JCE converts it) in code tags and I will test in JCE
jce 01.JPG
jce 02.JPG
jce 03.JPG
You do not have the required permissions to view the files attached to this post.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1668
Joined: Tue Jun 30, 2020 12:17 pm

Re: JCE adding characters to my html

Post by Pavel-ww » Sun Apr 07, 2024 8:37 am

mjsacauskis wrote:
Sat Apr 06, 2024 5:19 pm
It adds the &amp; to the code which breaks it.
Hi. Turn off all this in JCE global settings
1.jpg
You do not have the required permissions to view the files attached to this post.


Post Reply

Return to “Extensions for Joomla! 5.x”