- Status
- 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
]]>