Review 13.4 Merged

88734[BUGFIX] Allow allowedAttribs HTMLParser as either string or array

Benni Mack CR +2 V +2 Normal +167 −24 updated 03/25/25, 09:50

Commit message

Up until now, only a comma-separated list for the `allowedAttribs`
HTMLParser processing option was evaluated.

A YAML setting like below was never evaluated:

```
processing:
  HTMLparser_db:
    tags:
      span:
        allowedAttribs:
          - id
          - class
          - data-custom
```

Now it is possible to use either an array or string configuration
in both the YAML processing configuration directive, as well
as in TypoScript.

YAML string
===========

```
processing:
  HTMLparser_db:
    tags:
      span:
        allowedAttribs: id,class,data-custom
```

YAML array
==========

```
processing:
  HTMLparser_db:
    tags:
      span:
        allowedAttribs:
          - id
          - class
          - data-custom
```

TypoScript string
=================

```
RTE.proc.HTMLparser_db.tags.span.allowedAttribs = id,class,data-custom
```

TypoScript array:
=================

```
RTE.proc.HTMLparser_db.tags.span.allowedAttribs {
  0 = id
  1 = class
  2 = data-custom
```

This aligns with patch #92943 which allows to utilize both string
and array notations.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 4

Files 6

Review log 34

  1. Benni Mack commented on patch set 1 03/25/25, 09:32

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 03/25/25, 09:40 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/76224

  3. Benni Mack voted on patch set 1 CR +2 V +2 03/25/25, 09:50

  4. Benni Mack merged patch set 2 03/25/25, 09:50