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

        return implode('/' . $delimiter, $elements);
    }