PLF-6058: Failed to render Content Explorer in Catalan

Problem analysis:
* Some Catalan translations contain apostrophe/single quote.
  This mark isn't escaped and considered as parameter separator in JavaScript.

Fix description:
* Escape the messages before adding to JavaScript block.