MCPcopy Index your code
hub / github.com/github/awesome-copilot / renderAttributes

Function renderAttributes

website/src/scripts/pages/card-render.ts:16–21  ·  view source on GitHub ↗
(attributes?: Record<string, string>)

Source from the content-addressed store, hash-verified

14}
15
16function renderAttributes(attributes?: Record<string, string>): string {
17 if (!attributes) return "";
18 return Object.entries(attributes)
19 .map(([key, value]) => ` ${key}="${escapeHtml(value)}"`)
20 .join("");
21}
22
23export function renderEmptyStateHtml(title: string, description: string): string {
24 return `

Callers 1

renderSharedCardHtmlFunction · 0.85

Calls 1

escapeHtmlFunction · 0.90

Tested by

no test coverage detected