diff --git a/server/utils/htmlSanitizer.js b/server/utils/htmlSanitizer.js
index 4882052a..cdb3cfb0 100644
--- a/server/utils/htmlSanitizer.js
+++ b/server/utils/htmlSanitizer.js
@@ -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]
}