diff --git a/src/js/core/Dish.js b/src/js/core/Dish.js index e4db35bd..27fcdc06 100755 --- a/src/js/core/Dish.js +++ b/src/js/core/Dish.js @@ -139,7 +139,7 @@ Dish.prototype.translate = function(toType) { this.type = Dish.BYTE_ARRAY; break; case Dish.HTML: - this.value = this.value ? Utils.strToByteArray(Utils.stripHtmlTags(this.value, true)) : []; + this.value = this.value ? Utils.strToByteArray(Utils.unescapeHtml(Utils.stripHtmlTags(this.value, true))) : []; this.type = Dish.BYTE_ARRAY; break; default: diff --git a/src/js/core/Utils.js b/src/js/core/Utils.js index 9619f0b2..9ef0b2b1 100755 --- a/src/js/core/Utils.js +++ b/src/js/core/Utils.js @@ -928,6 +928,33 @@ var Utils = { }, + /** + * Unescapes HTML tags in a string to make them render again. + * + * @param {string} str + * @returns string + * + * @example + * // return "A