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

  Wednesday, 13 April 2022
  7 Replies
  3K Visits
Hi,

without changing anything in the configuration of the jce editor some html characters are replaced in the code:

' becomes '
< becomes <
> becomes >

Most articles are OK in proper html tags, but others with some "scripting" suddenly look like that:
<area shape="rect" coords="747,5,825,64" href="index.php?option=com_content&view=article&id=970" onmouseover="return overlib(&#39;<IMG SRC=\&#39;/images....


Can anyone help me? Never had that Problem in the past...

JCE-Editor Pro 2.9.21

Regards
Ellen
more than a month ago
·
#110841
Certain characters within an attribute value (in your case the onmouseover attribute) must be encoded, as they have a reserved status in HTML. In this case, the < and > characters denote the start and end characters of a tag, eg: <area>

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

more than a month ago
·
#110847
Why does it work before?
The last time (and the years before) I worked at that code, it looked like as it should - like this:

<area shape="rect" coords="438,244,503,301" href="/?view=article&id=970" onmouseover="return overlib('<IMG SRC=\'/images/


and suddenly the characters are changed?

Regards,
Ellen
more than a month ago
·
#110855
The last time (and the years before) I worked at that code


Which version was this?

I dont' think JCE has ever allowed code like that within attribute values without encoding it first.

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

more than a month ago
·
#110877
The last time I was working on that code was the 3rd Febuary 2022 - at that time everything was ok - like the 5 years before I`m using JCE Pro.
more than a month ago
·
#110890
Please post a link to an article containg this code.

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

more than a month ago
·
#110913
I've checked you code with various versions of JCE Pro going back to JCE Pro 2.8.18 and in every instance the <> characters are encoding in the attribute values, as they should be.

The code you are using is technically invalid, as <> symbols must always be encoded in attribute values (along with some other symbols), and JCE will always do this to create valid code.

Perhaps you added and saved your code with the editor off, or in the Code tab? Going forward, to maintain the code as it is, you will need to ensure that you edit that article with the editor off, or using the No Editor option in the Joomla Global Configuration.

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!