Skip Navigation


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>

function myFunction() { 
  document.getElementById("demo").innerHTML = "Hello JavaScript!";


As a workaround, edit your translation and remove the extra strings that are added:




2 Responses to “Adding the script tag in a Custom HTML block is breaking in the Translation Editor”

  1. 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!