From 2b30f680da58568f671fcbd3ff9927c5841fafef Mon Sep 17 00:00:00 2001 From: Fabre Florian Date: Thu, 23 Jul 2020 17:38:26 +0200 Subject: [PATCH] Refs #64 Handle html entities like ''' in dialog title --- .../creme_core/static/creme_core/js/widgets/dialog/dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/creme/creme_core/static/creme_core/js/widgets/dialog/dialog.js b/creme/creme_core/static/creme_core/js/widgets/dialog/dialog.js index 7e1dc8c212..7c4f73b7e0 100644 --- a/creme/creme_core/static/creme_core/js/widgets/dialog/dialog.js +++ b/creme/creme_core/static/creme_core/js/widgets/dialog/dialog.js @@ -505,7 +505,7 @@ creme.dialog.Dialog = creme.component.Component.sub({ return this._dialog.dialog('option', 'title'); } - this._dialog.dialog('option', 'title', String(title).unescapeHTML()); + this._dialog.dialog('option', 'title', String(title).decodeHTMLEntities()); return this; }, @@ -572,7 +572,7 @@ creme.dialog.Dialog = creme.component.Component.sub({ var draggable = is_framescroll ? options.draggable : false; var width = options.minWidth > 0 ? Math.max(options.minWidth, options.width) : options.width; var height = options.minHeight > 0 ? Math.max(options.minHeight, options.height) : options.height; - var title = options.title ? String(options.title).unescapeHTML() : options.title; + var title = options.title ? String(options.title).decodeHTMLEntities() : options.title; this._dialog = content.dialog({buttons: Object.values(buttons), title: title,