Page MenuHomeSealhub

sanitize.ts
No OneTemporary

sanitize.ts

export function attribute(raw: string | number): string {
if (typeof raw !== "string") {
raw = raw.toString();
}
return (raw || "")
.replaceAll("<", "&lt;")
.replace('"', "&quot;")
.replaceAll("'", "&#39;");
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 17:40 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
548013
Default Alt Text
sanitize.ts (221 B)

Event Timeline