Review 14.3 Merged

94967[BUGFIX] Allow limited markup in form inspector labels and descriptions

Benni Mack CR +2 V +2 Normal +62 −39 updated 07/28/26, 08:55

Commit message

Inspector editor labels and descriptions defined in YAML form configurations
were always rendered as plain text due to the use of document.createTextNode()
and .textContent assignments.
This prevented integrators from using basic HTML markup such as <br>
for line breaks or <strong> for emphasis in their configurations.

Two new private helper methods and configs are introduced in
the inspector component, which sanitize provided HTML via DOMPurify
before assigning it as innerHTML.
The label config allows only phrasing content, while the description
config allows some more tags, e.g. lists.

DOMPurify is an existing TYPO3 Core dependency.

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 34

  1. Benni Mack uploaded patch set 1 07/28/26, 06:26

  2. core-ci voted on patch set 1 V +1 07/28/26, 06:48 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105513

  3. Garvin Hicking voted on patch set 1 CR +2 V +2 07/28/26, 08:55

  4. Garvin Hicking merged patch set 2 07/28/26, 08:55