diff --git a/client/src/view-helper.js b/client/src/view-helper.js index 179e0c7ec6..622d055300 100644 --- a/client/src/view-helper.js +++ b/client/src/view-helper.js @@ -679,7 +679,7 @@ function (marked, DOMPurify, /** typeof Handlebars */Handlebars) { * * @param {string} text A text. * @param {{inline?: boolean, linksInNewTab?: boolean}} [options] Options. - * @returns {string} HTML. + * @returns {Handlebars.SafeString} HTML. */ transformMarkdownText: function (text, options) { text = text || ''; @@ -710,7 +710,7 @@ function (marked, DOMPurify, /** typeof Handlebars */Handlebars) { ' { - let text = this.getHelper().transformMarkdownText(el.dataset.text); + let text = this.getHelper().transformMarkdownText(el.dataset.text).toString(); Espo.Ui.popover($(el), {content: text}, this); });