Resolved
Reported for: WPML Multilingual CMS 4.4.9
Resolved in: 4.4.10
Overview of the issue
Translating content that contains code with a <script> tag within a Custom HTML block breaks the Classic or Advanced Translation Editor.
Example of content that will cause an issue:
<h1>HTML block</h1> <script> function myFunction() { document.getElementById("demo").innerHTML = "Hello JavaScript!"; } </script>
Workaround
As a workaround, edit your translation and remove the extra strings that are added:
<![CDATA[
and
]]>
Hi, I am troubling with this problem but I still don’t understand what do you mean about the workaround solution. Could you provide more detail or an example for me, please? Thanks!
Hey there,
The idea is to remove the from the editor.
If you have any issue with this procedure, don’t hesitate to open a ticket in our support forum:
https://wpml.org/forums/forum/english-support/
Regards