We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0ab7e commit 8af3befCopy full SHA for 8af3bef
services/static-webserver/client/source/class/osparc/ui/basic/SafeLabel.js
@@ -22,10 +22,11 @@
22
qx.Class.define("osparc.ui.basic.SafeLabel", {
23
extend: qx.ui.basic.Label,
24
25
- construct(...args) {
26
- this.addListener("changeValue", this._onChangeValue, this);
+ construct(value) {
+ const sanitized = value && typeof value === "string" ? osparc.wrapper.DOMPurify.sanitize(value) : null;
27
+ this.base(arguments, sanitized);
28
- this.base(arguments, ...args);
29
+ this.addListener("changeValue", this._onChangeValue, this);
30
31
this.set({
32
rich: true,
0 commit comments