@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"
@@ -242,6 +242,7 @@
242
242
  "ui/filters/duration.js",
243
243
  "ui/filters/filterByFields.js",
244
244
  "ui/filters/relativedate.js",
245
+ "ui/filters/safeLinks.js",
245
246
  "ui/filters/dateParts.js",
246
247
  "ui/filters/truncate.filter.js",
247
248
  "ui/filters/filter-translate.decorator.js",
@@ -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()}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1017.280.0",
3
+ "version": "1017.282.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",