Review 13.4 Merged

95451[BUGFIX] Support `f:render.text` for backend rich text

Garvin Hicking CR +2 V +2 Normal +84 −9 updated 08/27/26, 14:54

Commit message

The `f:render.text` ViewHelper uses the TCA field configuration to
render record values. Rich-text fields have so far been passed to
`f:format.html`, even when the template is rendered in a backend
request. Since that ViewHelper deliberately rejects backend usage,
rendering such fields fails.

The restriction exists because `f:format.html` runs
`lib.parseFunc_RTE`. This is frontend TypoScript whose result can
depend on the current page, site, language, rootline and other
frontend request state. Supplying that state in the backend would
require emulating a frontend request and could produce unpredictable
results.

Preserve `f:format.html` for frontend requests. For backend requests,
pass the value through `f:sanitize.html` and then
`f:transform.html`. Sanitization makes the stored HTML safe to
display, while transformation resolves TYPO3 URI references such as
`t3://page?uid=1`.

This backend pipeline intentionally does not reproduce every operation
that may be configured in `lib.parseFunc_RTE`. It provides a safe and
predictable representation of RTE content without introducing a
dependency on unavailable frontend context.

Add functional coverage for sanitizing unsafe markup and transforming
internal page links in backend requests.

Review

  • Code review CR +2 Done
    • Garvin Hicking +2
  • Verified V +2 Done
    • Garvin Hicking +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 46

  1. Garvin Hicking commented on patch set 1 08/27/26, 13:06

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V -1 08/27/26, 13:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107268

  3. Matthias Vogel uploaded patch set 2 V -1 08/27/26, 14:04

  4. core-ci voted on patch set 2 V +1 08/27/26, 14:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107271

  5. Garvin Hicking voted on patch set 2 CR +2 V +2 08/27/26, 14:54

  6. Garvin Hicking merged patch set 3 08/27/26, 14:54