mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Optional match on ending ;
This commit is contained in:
parent
3194b4cd87
commit
99ea7866c5
@ -30,7 +30,7 @@ function stripAllTags(html, shouldDecodeEntities = true) {
|
||||
module.exports.stripAllTags = stripAllTags
|
||||
|
||||
function decodeHTMLEntities(strToDecode) {
|
||||
return strToDecode.replace(/\&([^;]+);/g, function (entity) {
|
||||
return strToDecode.replace(/\&([^;]+);?/g, function (entity) {
|
||||
if (entity in entities) {
|
||||
return entities[entity]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user