MCPcopy Index your code
hub / github.com/microsoft/AI-Engineering-Coach / html

Function html

src/webview/shared.ts:261–267  ·  view source on GitHub ↗
(strings: TemplateStringsArray, ...values: unknown[])

Source from the content-addressed store, hash-verified

259 * - Values wrapped with `rawHtml(...)` pass through unescaped
260 */
261export function html(strings: TemplateStringsArray, ...values: unknown[]): SafeHtml {
262 let out = strings[0];
263 for (let i = 0; i < values.length; i++) {
264 out += renderValue(values[i]) + strings[i + 1];
265 }
266 return rawHtml(out);
267}
268
269function renderValue(v: unknown): string {
270 if (v == null || v === false) return '';

Callers 15

StatCardFunction · 0.70
CanvasElFunction · 0.70
LoadingScreenFunction · 0.70
ScoreRingFunction · 0.70
PctBadgeFunction · 0.70
ErrorMsgFunction · 0.70
showErrorFallbackFunction · 0.70
severityIconFunction · 0.70
severityBadgeFunction · 0.70
sourceBadgeFunction · 0.70
statPillFunction · 0.70
sparklineSvgFunction · 0.70

Calls 2

renderValueFunction · 0.70
rawHtmlFunction · 0.70

Tested by

no test coverage detected