This commit is contained in:
Renan LE CARO 2025-04-29 17:53:35 +02:00
parent d17eba50e5
commit 99930cb77f
13 changed files with 256 additions and 104 deletions

View file

@ -319,3 +319,7 @@ export function hoursSpentPlaying() {
return 0;
}
}
export function escapeAttribute(str:String){
return str.replace(/&/gi,'&amp;').replace(/</gi,'&lt;').replace(/"/gi,'&quot;').replace(/'/gi,'&#39;')
}