diff --git a/src/CombinedImagePackModel.cpp b/src/CombinedImagePackModel.cpp
index 6dadbef4530ac417a88cdf162190c263e3d920f8..8847fe65230114c2a0fa82842e21d0f0acba1123 100644
--- a/src/CombinedImagePackModel.cpp
+++ b/src/CombinedImagePackModel.cpp
@@ -58,7 +58,7 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
         switch (role) {
         case CompletionModel::CompletionRole:
             return QStringLiteral(
-                     "<img data-mx-emoticon height=32 src=\"%1\" alt=\"%2\" title=\"%2\">")
+                     "<img data-mx-emoticon height=\"32\" src=\"%1\" alt=\"%2\" title=\"%2\">")
               .arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(),
                    !images[index.row()].image.body.empty()
                      ? QString::fromStdString(images[index.row()].image.body)