MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / decodeHtmlAttribute

Function decodeHtmlAttribute

src/hooks/urlLoaderPolicy.ts:125–132  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

123}
124
125function decodeHtmlAttribute(value: string): string {
126 return value
127 .replace(/&/g, '&')
128 .replace(/"/g, '"')
129 .replace(/'/g, "'")
130 .replace(/&lt;/g, '<')
131 .replace(/&gt;/g, '>');
132}
133
134function ensureTrailingSlash(path: string): string {
135 return path.endsWith('/') ? path : `${path}/`;

Callers 1

getDirectoryListingLinksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected