@TK-999 good catch. Our JsMessages is not ready for parsing messages :(
You can still try with htmlspecialchars and decode in js or you can pass ```WikiBuilderCfg``` as json object (by json_encode() - all tricky chars will be escaped then)