#55009Replace $GLOBALS['LANG']->JScharCode() with \TYPO3\CMS\Core\Utility\GeneralUtility::encodeJavaScriptString()
Description
The expensive JScharCode() calls (many calls to substr(), chr() and ord()) can be replaced with calls to \TYPO3\CMS\Core\Utility\GeneralUtility::encodeJavaScriptString()
Take care to add quotes around the result.