Deprecation: #15415 - Deprecate removeBadHTML

See forge#15415


Due to the wrong approach of removeBadHTML it is not 100% complete and does not keep its promise.

  • ContentObjectRenderer::stdWrap_removeBadHTML()
  • ContentObjectRenderer::removeBadHTML()
  • stdWrap.removeBadHTML


Using the mentioned method or stdWrap property will trigger a deprecation log entry.

Affected Installations

Instances that use the method or stdWrap property.


Implement a proper encoding by yourself. Use htmlspecialchars() or stdWrap.htmlSpecialChars in the context of HTML, GeneralUtility::quoteJSvalue() or stdWrap.encodeForJavaScriptValue in the context of JavaScript.