[TASK] Remove deprecated functions from ContentObjectRenderer

HTML
PHP_SCRIPT

Resolves: #56850
Related: #36009
Related: #36402
Releases: 6.2
Change-Id: I2abfae16b7eed9b360524b6553854e4b1cbf08bc
Reviewed-on: https://review.typo3.org/28328
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer