TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,37 @@
.. include:: /Includes.rst.txt
.. _deprecation-85120:
=======================================
Deprecation: #85120 - JavaScriptEncoder
=======================================
See :issue:`85120`
Description
===========
The standalone utility class :php:`TYPO3\CMS\Core\Encoder\JavaScriptEncoder` has been superseded in TYPO3 6.2
by PHP's native :php:`json_encode()` and :php:`GeneralUtility::quoteJSvalue()` which provide significant
performance improvements. The utility class is thus marked for removal in TYPO3 v10.0.
Impact
======
Instantiating the class will trigger a PHP :php:`E_USER_DEPRECATED` error.
Affected Installations
======================
TYPO3 installations with custom extensions using this PHP class.
Migration
=========
Use :php:`GeneralUtility::quoteJSvalue()` or :php:`json_encode()` with proper options as second parameter to
escape a string for JavaScript output.
.. index:: PHP-API, FullyScanned