Potential fix for code scanning alert no. 60: Double escaping or unescaping

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Jon Fuller 2025-04-11 13:30:43 -07:00 committed by GitHub
parent 3cda253d61
commit 50f4f822b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,9 +215,9 @@ export function sanitizeHtmlContent(html: string): string {
.replace(/&nbsp;/g, ' ')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
.replace(/&amp;/g, '&')
.replace(/&quot;/g, '"')
.replace(/&#39;/g, "'");
.replace(/&#39;/g, "'")
.replace(/&amp;/g, '&');
return content;
}