From d7efc29770b6bd65c407ac0d8d57ec7202af23ef Mon Sep 17 00:00:00 2001 From: rbuljan Date: Tue, 20 Apr 2021 20:47:10 +0200 Subject: [PATCH] Add encode option as an alternative for simpler HTML messages - without the need for addStyle --- dist/notify.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/notify.js b/dist/notify.js index fb9df63..db7138e 100644 --- a/dist/notify.js +++ b/dist/notify.js @@ -201,7 +201,8 @@ showDuration: 400, hideAnimation: "slideUp", hideDuration: 200, - gap: 5 + gap: 5, + encode: true, }; var inherit = function(a, b) { @@ -509,7 +510,9 @@ continue; } if (type === "text") { - d = encode(d); + if (this.options.encode) { + d = encode(d); + } if (this.options.breakNewLines) { d = d.replace(/\n/g, '
'); }