Skip to content

Commit 4faa928

Browse files
Potential fix for code scanning alert no. 75: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent fd0958f commit 4faa928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/text-normalization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ export function unescapeHtmlEntities(text: string): string {
8888
return text
8989
.replace(/&lt;/g, "<")
9090
.replace(/&gt;/g, ">")
91-
.replace(/&amp;/g, "&")
9291
.replace(/&quot;/g, '"')
9392
.replace(/&#39;/g, "'")
9493
.replace(/&apos;/g, "'")
94+
.replace(/&amp;/g, "&")
9595
}

0 commit comments

Comments
 (0)