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
- Forum
- JCE Editor
- characters are replaced in the code
Support is currently Online
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
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:
Can anyone help me? Never had that Problem in the past...
JCE-Editor Pro 2.9.21
Regards
Ellen
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('<IMG SRC=\'/images....
Can anyone help me? Never had that Problem in the past...
JCE-Editor Pro 2.9.21
Regards
Ellen
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.
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:
and suddenly the characters are changed?
Regards,
Ellen
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
Hi Ryan,
Article Link
https://www.fe-wo-insel.de/index.php/grundriss-fotos-schoeneck-1
Regards,
Ellen
Article Link
https://www.fe-wo-insel.de/index.php/grundriss-fotos-schoeneck-1
Regards,
Ellen
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.
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!
Be one of the first to reply to this post!