Decode custom video title from info

The values in JSON info are URI encoded with "+" signs, add custom decode function that decodes them.
This commit is contained in:
Rafał Dzięgiel
2021-03-11 18:49:08 +01:00
parent fceb8ff70a
commit 4375077dbc
2 changed files with 6 additions and 1 deletions

View File

@@ -104,3 +104,8 @@ function encodeHTML(text)
.replace(/"/g, '"')
.replace(/'/g, ''');
}
function decodeURIPlus(uri)
{
return decodeURI(uri.replace(/\+/g, ' '));
}