JS Encoding

Failed to execute the [groovy] macro. Cause: [startup failed: incubator:Test.TestJSEncoding: 5: Unexpected character: '\' @ line 5, column 32.      text = text.replaceAll(""", "\\x22");                                   ^  1 error ]. Click on this message for details.

<input type="button" name="a" value="click" onclick="alert('$text');" />
    

$xwiki.getDocument('Help.SupportPanel.Content').translatedDocument.title

Failed to execute the [include] macro. Cause: [Current user [incubator:XWiki.evalica] doesn't have view rights on document [xwiki:Help.SupportPanel.Content]]. Click on this message for details.