esc

tcmts.cli.pages.esc · #nyytjj5j · term · runs anywhere

export const esc = (s: string) => s.replace(/[&<>"]/g, (c) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" })[c]!)

used by