use replaceAll when sanitizing urls

This commit is contained in:
Dan Cech
2021-10-22 15:23:06 -04:00
committed by GitHub
parent 31b78d51c6
commit 8081dc9ee9
+1 -1
View File
@@ -40,5 +40,5 @@ export function escapeHtml(str: string): string {
}
export function sanitizeAngularInterpolation(url: string): string {
return url.replace('{{', '%7B%7B').replace('}}', '%7D%7D');
return url.replaceAll('{{', '%7B%7B').replaceAll('}}', '%7D%7D');
}