Fix the replacement of the encoded apostrophe
authorAlexander Ebert <ebert@woltlab.com>
Mon, 6 Feb 2023 13:31:32 +0000 (14:31 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 6 Feb 2023 13:31:32 +0000 (14:31 +0100)
See https://www.woltlab.com/community/thread/298815-desktopbenachrichtigungen-stellen-apostroph-nicht-korrekt-dar/

ts/WoltLabSuite/Core/Notification/Handler.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js

index 9d88c7238b00772ffa985a7cf8ddc94848c58d0c..6b20d71960bfd09f3d0ee867ea4b221b191c7872 100644 (file)
@@ -220,7 +220,7 @@ class NotificationHandler {
         notification = new window.Notification(pollData.notification.title, {
           body: StringUtil.unescapeHTML(pollData.notification.message)
             .replace(/&#x202F;/g, "\u202F")
-            .replace(/&#39;/g, "'"),
+            .replace(/&#039;/g, "'"),
           icon: this.icon,
         });
       } catch (e) {
index 88ac44bc2bc631942be0359f292a2bbfa55d19e2..30541e3097deab0c58379a28bc1b227b4f3eb726 100644 (file)
@@ -164,7 +164,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Core", "../Event/Handler",
                     notification = new window.Notification(pollData.notification.title, {
                         body: StringUtil.unescapeHTML(pollData.notification.message)
                             .replace(/&#x202F;/g, "\u202F")
-                            .replace(/&#39;/g, "'"),
+                            .replace(/&#039;/g, "'"),
                         icon: this.icon,
                     });
                 }