Skip to content

Commit 16ca59f

Browse files
committed
Update index.ts
1 parent 11787f0 commit 16ca59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export function stringifyError(error): string {
7676
)
7777
.trim()
7878
// Unescape any HTML-escpaed characters
79-
.replaceAll("&", "&")
8079
.replaceAll("&lt;", "<")
8180
.replaceAll("&gt;", ">")
8281
.replaceAll("&quot;", '"')
8382
.replaceAll("&#39;", "'")
83+
.replaceAll("&amp;", "&")
8484
);
8585
} catch {
8686
// Need to catch errors from JSON.stringify()

0 commit comments

Comments
 (0)