mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 09:48:50 +01:00
3 lines
111 B
TypeScript
3 lines
111 B
TypeScript
export const escapeHtml = (html: string) => {
|
|
return html.replace(/&/g, "&").replace(/</g, "<");
|
|
};
|