mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 12:03:44 +03:00
parent
c88c41b9b5
commit
846065916d
|
@ -196,5 +196,7 @@ function parseURL(url: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function unescapeHTMLChars(str: string): string {
|
export function unescapeHTMLChars(str: string): string {
|
||||||
return str.replace(/&#(\d+);/g, (_m, code) => String.fromCharCode(parseInt(code, 10)));
|
return str
|
||||||
|
.replace(/&#(\d+);/g, (_m, code) => String.fromCharCode(parseInt(code, 10)))
|
||||||
|
.replace(/&/g, '&');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user