Add rel=noopener to links with target=_blank

http://support.detectify.com/customer/portal/articles/2792257-external-links-using-target-_blank-
This commit is contained in:
Frederic Merizen 2019-03-05 18:16:13 +01:00
parent f207641b4e
commit a8ce11a4d2
38 changed files with 65 additions and 65 deletions

View file

@ -11,7 +11,7 @@ RSpec.describe StringToHtmlHelper, type: :helper do
context "with a link" do
let(:description) { "https://d-s.fr" }
it { is_expected.to eq("<p><a target=\"_blank\" href=\"https://d-s.fr\">https://d-s.fr</a></p>") }
it { is_expected.to eq("<p><a target=\"_blank\" rel=\"noopener\" href=\"https://d-s.fr\">https://d-s.fr</a></p>") }
end
context "with empty decription" do