nodebb-theme-harmony 1.1.40 → 1.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.3.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -152,6 +152,9 @@ $(document).ready(function () {
152
152
  }
153
153
  draftItems.reverse().forEach((draft) => {
154
154
  if (draft) {
155
+ if (draft.title) {
156
+ draft.title = utils.escapeHTML(String(draft.title));
157
+ }
155
158
  draft.text = utils.escapeHTML(
156
159
  draft.text
157
160
  ).replace(/(?:\r\n|\r|\n)/g, '<br>');