Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/codemirror. A minor test of Codemirror okikio-codemirror.netlify.app
Something went wrong. Try again.
12345678910111213export const escapeHtml = (s: string): string => s.replace(PATTERN, escaped);const PATTERN = /[&<>'"]/g;const escaped = (c: string) => c === "&" ? "&" : c === "<" ? "<" : c === ">" ? ">" : c === "'" ? "'" : """;