@sapui5/sap.zen.dsh 1.103.0 → 1.104.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.zen.dsh",
3
- "version": "1.103.0",
3
+ "version": "1.104.0",
4
4
  "description": "SAPUI5 Library sap.zen.dsh",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -4,7 +4,7 @@
4
4
  <vendor>SAP SE</vendor>
5
5
  <copyright>SAPUI5
6
6
  (c) Copyright 2009-2021 SAP SE. All rights reserved</copyright>
7
- <version>1.103.0</version>
7
+ <version>1.104.0</version>
8
8
  <documentation>Design Studio Runtime Library. Intended only to be used within S/4 HANA Fiori applications.</documentation>
9
9
  <appData>
10
10
  <jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
@@ -31,7 +31,7 @@ sap.ui.define(
31
31
  * @alias sap.zen.dsh
32
32
  * @public
33
33
  * @author SAP SE
34
- * @version 1.103.0
34
+ * @version 1.104.0
35
35
  */
36
36
  var thisLib = sap.ui.getCore().initLibrary(
37
37
  {
@@ -56,7 +56,7 @@ sap.ui.define(
56
56
  ],
57
57
  elements: [],
58
58
  noLibraryCSS: true,
59
- version: "1.103.0"
59
+ version: "1.104.0"
60
60
  }
61
61
  );
62
62
 
@@ -121,7 +121,7 @@ sap.ui.define(
121
121
 
122
122
  renderer : {},
123
123
  setHtmlText : function(sHTMLGiven){
124
- this.setContent("");
124
+ this.setContent("", true);
125
125
 
126
126
  var sHTML = "<div>"+ sHTMLGiven + "</div>";
127
127
  var sSanitizedText = "";
@@ -139,7 +139,14 @@ sap.ui.define(
139
139
  }
140
140
 
141
141
  // this.setProperty("htmlText", sSanitizedText);
142
- this.setContent(sSanitizedText);
142
+ this.setContent(sSanitizedText, true);
143
+ },
144
+ setContent : function(sContent, bFromHtml){
145
+ var sanitizePrev = this.getSanitizeContent();
146
+ this.setSanitizeContent(!bFromHtml && sanitizePrev);
147
+
148
+ HTML.prototype.setContent.call(this, sContent);
149
+ this.setSanitizeContent(sanitizePrev);
143
150
  },
144
151
  getHtmlText : function(){
145
152
  //Remove the surrounding DIV