diff --git a/ayanova/src/api/gzutil.js b/ayanova/src/api/gzutil.js index 23882da8..128139fd 100644 --- a/ayanova/src/api/gzutil.js +++ b/ayanova/src/api/gzutil.js @@ -646,6 +646,20 @@ export default { return str != null && typeof str.valueOf() === "string"; }, /////////////////////////////////////////////// + // case 4721: escape text that goes into HTML (v-html) so it shows as text + // + escapeHtml: function(str) { + if (str === null || str === undefined) { + return ""; + } + return String(str) + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); + }, + /////////////////////////////////////////////// // // // diff --git a/ayanova/src/components/gzconfirm.vue b/ayanova/src/components/gzconfirm.vue index f99a5fd1..d8faee09 100644 --- a/ayanova/src/components/gzconfirm.vue +++ b/ayanova/src/components/gzconfirm.vue @@ -31,10 +31,7 @@ {{ options.title }} - + @@ -82,6 +79,7 @@