Sanitize: do not escape forward slash (#65416)

This commit is contained in:
Kristian Bremberg
2023-03-28 18:42:53 +02:00
committed by GitHub
parent 09ff5ab522
commit 420aeb3bec
2 changed files with 1 additions and 2 deletions

View File

@@ -85,6 +85,5 @@ export function escapeHtml(str: string): string {
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/'/g, '&#39;')
.replace(/\//g, '&#47;')
.replace(/"/g, '&quot;');
}