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
Thu, Jan 23, 19:19 (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
599023
Default Alt Text
sanitize.ts (221 B)

Event Timeline