chore(react): add back note map link configuration

This commit is contained in:
Elian Doran
2025-10-04 13:04:40 +03:00
parent ad5ff6e41a
commit 2d29d1b41f
5 changed files with 57 additions and 57 deletions

View File

@@ -169,7 +169,7 @@ const entityMap: Record<string, string> = {
"=": "&#x3D;"
};
function escapeHtml(str: string) {
export function escapeHtml(str: string) {
return str.replace(/[&<>"'`=\/]/g, (s) => entityMap[s]);
}