mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 01:37:32 +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