#106548parseFunc doest’t support new line immidiatly after tag name
Description
Steps to reproduce
The following instructions have been tested towards main, but I’ve also reproduced the bug in the current TYPO3 v10 ELTS.
1. Explicitly set TypoScript value lib.parseFunc.allowTags to a value other than * , e.g. div.
2. Try to render a fluid template such as this:
<f:format.html parseFuncTSPath="lib.parseFunc">
<div
id="very-important-div"
>Hello, world!</div>
</f:format.html>
Expected result
A div with the id very-important-div contains the content “Hello, world!”.
Actual Result
The tag is escaped. The user will seeReason
The current implementation splits tags by space characters only. The HTML Spec also allows character tabulation, line feed and form feed characters to separate the tag name from attributes, see https://html.spec.whatwg.org/multipage/parsing.html#tag-name-state.
Reviews 2
History 27
-
Gerrit Code Review pushed patch set 1 for main to change 89038 status
NewUnder Review <span data-processor="relativetime" data-value="2025-04-10T13:26:43+00:00" > 04/10/25, 13:26 </span> -
Gerrit Code Review pushed patch set 2 for main to change 89038 <span data-processor="relativetime" data-value="2025-04-10T17:34:41+00:00" > 04/10/25, 17:34 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 89038 <span data-processor="relativetime" data-value="2025-04-12T16:21:05+00:00" > 04/12/25, 16:21 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 89038 <span data-processor="relativetime" data-value="2025-04-12T17:30:27+00:00" > 04/12/25, 17:30 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 89088 <span data-processor="relativetime" data-value="2025-04-12T17:52:33+00:00" > 04/12/25, 17:52 </span>
-
Marcel Jürgen Falk commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-04-12T17:55:07+00:00" > 04/12/25, 17:55 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-08-12T14:35:47+00:00" > 08/12/25, 14:35 </span>
Applied in changeset commit:5c6b7dc9381b34b5eb361dd427756852136babe2.