protected function formatTypoScriptPath($typoScriptPath) { $pathSegments = array(); $spacer = ''; foreach (explode('/', $typoScriptPath) as $segment) { $pathSegments[] = $spacer . $segment . '/'; $spacer .= ' '; } return htmlentities(implode("\n", $pathSegments)); }