MCPcopy Create free account
hub / github.com/angular/dev-infra / escapeHtml

Function escapeHtml

github-actions/unified-status-check/lib/validator.ts:47–54  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

45}
46
47function escapeHtml(text: string): string {
48 return text
49 .replace(/&/g, '&')
50 .replace(/</g, '&lt;')
51 .replace(/>/g, '&gt;')
52 .replace(/"/g, '&quot;')
53 .replace(/'/g, '&#039;');
54}
55
56function getSummary(results: ValidationResults, pullRequest: PullRequest) {
57 return `

Callers 1

getSummaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected