mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +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) => {
|
||||
text = text.replace(entity[0], `&${entity[1]};`)
|
||||
text = text.replace(new RegExp(entity[0], 'g'), `&${entity[1]};`)
|
||||
})
|
||||
return text
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user