mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-07-26 16:21:26 +00:00
.github
content
docs
quartz
cli
components
plugins
processors
static
styles
util
ctx.ts
escape.ts
glob.ts
jsx.tsx
lang.ts
log.ts
path.test.ts
path.ts
perf.ts
resources.tsx
sourcemap.ts
theme.ts
trace.ts
bootstrap-cli.mjs
bootstrap-worker.mjs
build.ts
cfg.ts
worker.ts
.gitattributes
.gitignore
.npmrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
Dockerfile
LICENSE.txt
README.md
globals.d.ts
index.d.ts
package-lock.json
package.json
quartz.config.ts
quartz.layout.ts
tsconfig.json
9 lines
216 B
TypeScript
9 lines
216 B
TypeScript
export const escapeHTML = (unsafe: string) => {
|
|
return unsafe
|
|
.replaceAll("&", "&")
|
|
.replaceAll("<", "<")
|
|
.replaceAll(">", ">")
|
|
.replaceAll('"', """)
|
|
.replaceAll("'", "'")
|
|
}
|