Project

General

Profile

Actions

Task #105035

closed

Modernize DebuggerUtility::var_dump() rendering

Added by Benjamin Franzke 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Category:
Code Cleanup
Target version:
Start date:
2024-09-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Use a `html()` method similar to lit to avoid
string concatenation which has the potentional to
create broken or even insecure markup.

Also escape non printable characters in console
output mode.

Motivation for this change:

A follow up patch will migrate HTML debug-output to use
<details> + <summary> in order to avoid checkbox-hacks
for tree-collapsing and to allow the usage of the
following browser features:

  • links will auto-open nested trees
    (makes workarounds like #105013 unnecessary)
  • browser search can find entries
Actions

Also available in: Atom PDF