1
0
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:
asmsuechan
2017-03-21 23:43:37 -07:00
parent 1daf07edeb
commit 39274ce483

View File

@@ -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
}