Closed
Closed
Copy link
Description
Symfony version(s) affected
7.1.1
Description
How to reproduce
Throw an exception on PHP 8.3 and make sure that the error handler catches and renders it on an HTML page.
Possible Solution
In #51586 the rendering code was changed to replace all spaces with
, even those within HTML tags. That ultimately breaks the rendering.
I quickly tried to remove that replacement, change .trace-code li code
to use white-space: pre;
and change the final trim()
to rtrim()
, but the result is not quite sufficient:
Presumably something in the multiline splitting logic needs to be adjusted.
Additional Context
No response