TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _deprecation-15415:
|
||||
|
||||
=============================================
|
||||
Deprecation: #15415 - Deprecate removeBadHTML
|
||||
=============================================
|
||||
|
||||
See :issue:`15415`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
Due to the wrong approach of removeBadHTML it is not 100% complete and does not keep its promise.
|
||||
|
||||
- :php:`ContentObjectRenderer::stdWrap_removeBadHTML()`
|
||||
- :php:`ContentObjectRenderer::removeBadHTML()`
|
||||
- :typoscript:`stdWrap.removeBadHTML`
|
||||
|
||||
|
||||
Impact
|
||||
======
|
||||
|
||||
Using the mentioned method or stdWrap property will trigger a deprecation log entry.
|
||||
|
||||
|
||||
Affected Installations
|
||||
======================
|
||||
|
||||
Instances that use the method or stdWrap property.
|
||||
|
||||
|
||||
Migration
|
||||
=========
|
||||
|
||||
Implement a proper encoding by yourself. Use :php:`htmlspecialchars()` or :typoscript:`stdWrap.htmlSpecialChars`
|
||||
in the context of HTML, :php:`GeneralUtility::quoteJSvalue()` or :typoscript:`stdWrap.encodeForJavaScriptValue`
|
||||
in the context of JavaScript.
|
||||
|
||||
.. index:: Frontend, TypoScript, PHP-API
|
||||
Reference in New Issue
Block a user