@c8y/ng1-modules 1017.280.0 → 1017.282.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.
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
<div ng-if="vm.notes && vm.notes.htmlContent" class="text-break-word asset-notes-body">
|
|
22
|
-
<span ng-bind-html="vm.notes.htmlContent"></span>
|
|
22
|
+
<span ng-bind-html="vm.notes.htmlContent | safeLinks"></span>
|
|
23
23
|
<c8y-if-allowed admin-mos="[vm.config.context]">
|
|
24
24
|
<button
|
|
25
25
|
type="button"
|
package/core/cumulocity.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";angular.module("c8y.ui").filter("safeLinks",function(){return function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=angular.element("<div>").html(r);return e.find("a").attr("target","_blank").attr("rel","noreferrer noopener nofollow"),e.html()}});
|