FIX: add rel noopener and noreferrer in addition to nofollow

This commit is contained in:
Arpit Jalan
2016-11-20 17:07:27 +05:30
parent 18156719bd
commit 7cb76f7333
6 changed files with 16 additions and 16 deletions

View File

@ -77,7 +77,7 @@ HTML
end
it "should inject nofollow in all user provided links" do
expect(PrettyText.cook('<a href="http://cnn.com">cnn</a>')).to match(/nofollow/)
expect(PrettyText.cook('<a href="http://cnn.com">cnn</a>')).to match(/nofollow noopener noreferrer/)
end
it "should not inject nofollow in all local links" do