mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-17 19:51:42 +00:00
Fix to handle with multiple entities in one line
This commit is contained in:
@@ -35,7 +35,7 @@ function encodeHTMLEntities (text) {
|
|||||||
]
|
]
|
||||||
|
|
||||||
entities.forEach((entity) => {
|
entities.forEach((entity) => {
|
||||||
text = text.replace(entity[0], `&${entity[1]};`)
|
text = text.replace(new RegExp(entity[0], 'g'), `&${entity[1]};`)
|
||||||
})
|
})
|
||||||
return text
|
return text
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user