mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-17 18:40:59 +02:00
Optional match on ending ;
This commit is contained in:
@ -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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user