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:
parent
f207641b4e
commit
a8ce11a4d2
38 changed files with 65 additions and 65 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue