Neos\Fusion\Core\ExceptionHandlers\HtmlMessageHandler::formatTypoScriptPath PHP Method

formatTypoScriptPath() protected method

example: default/body/content/ is rendered as default/ body/ content/
protected formatTypoScriptPath ( string $typoScriptPath ) : string
$typoScriptPath string
return string Multi-line stack trace for the given TypoScript path
    protected function formatTypoScriptPath($typoScriptPath)
    {
        $pathSegments = array();
        $spacer = '';
        foreach (explode('/', $typoScriptPath) as $segment) {
            $pathSegments[] = $spacer . $segment . '/';
            $spacer .= ' ';
        }
        return htmlentities(implode("\n", $pathSegments));
    }