Node.js based forum software built for the modern web
fix: use outerHTML so we dont lose wrapping element
Barış Soner Uşaklıc51285bdd479
diff --git a/public/src/modules/modals.js b/public/src/modules/modals.jsindex 51dc72907c..dc3c0e24e4 100644--- a/public/src/modules/modals.js+++ b/public/src/modules/modals.js@@ -67,7 +67,7 @@ export async function prompt(opts, callback) {function normalizeMessage(opts) {const msg = opts && opts.message ? opts.message : opts;if (msg instanceof jQuery) {- return msg.html();+ return msg[0] ? msg[0].outerHTML : '';}return msg;}