feat(web): render component in notifications (#10990)

This commit is contained in:
Michel Heusschen
2024-07-10 16:05:04 +02:00
committed by GitHub
parent 1dd1d36120
commit 59aa347912
9 changed files with 88 additions and 30 deletions

View File

@@ -5,12 +5,3 @@ export const removeAccents = (str: string) => {
export const normalizeSearchString = (str: string) => {
return removeAccents(str.toLocaleLowerCase());
};
export const encodeHTMLSpecialChars = (str: string) => {
return str
.replaceAll('&', '&')
.replaceAll('<', '&lt;')
.replaceAll('>', '&gt;')
.replaceAll('"', '&quot;')
.replaceAll("'", '&#39;');
};