Add rel="noopener" to external links

Fixes #4764
This commit is contained in:
Francis Lachapelle
2019-06-10 13:19:46 -04:00
parent 3129e149df
commit 0e918a446a
7 changed files with 8 additions and 5 deletions
@@ -98,7 +98,7 @@
<!-- attach urls -->
<md-list-item ng-repeat="url in ::editor.component.attachUrls">
<md-icon>link</md-icon>
<p><a ng-href="{{::url.value}}" target="_new" ng-bind="::url.value"><!-- link --></a></p>
<p><a ng-href="{{::url.value}}" rel="noopener" target="_new" ng-bind="::url.value"><!-- link --></a></p>
</md-list-item>
<!-- comment -->
<md-list-item ng-show="::editor.component.comment">