#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 seeHello, world!
as text instead of interpreted HTML.
Reason
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.