mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add dashboard
This commit is contained in:
6
dashboard/utils/parseText.ts
Normal file
6
dashboard/utils/parseText.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function parseText(text: string) {
|
||||
const entityRegex = /&#(\d+);/g;
|
||||
return text.replace(entityRegex, (match, dec) => {
|
||||
return String.fromCharCode(dec);
|
||||
}).replace(/&/g, '&');
|
||||
}
|
||||
Reference in New Issue
Block a user