protected function formatScriptPath($typoScriptPath, $delimiter, $escapeHtml = true)
{
if ($escapeHtml) {
$typoScriptPath = htmlspecialchars($typoScriptPath);
}
// TODO: hardcoded parsing?! where is the library for that
$elements = explode('/', $typoScriptPath);
return implode('/' . $delimiter, $elements);
}