mirror of
https://github.com/searxng/searxng.git
synced 2026-01-02 09:00:03 +00:00
[enh] implements #264 : add rel="noreferrer" to external links
This commit is contained in:
@@ -47,7 +47,7 @@ class ViewsTestCase(SearxTestCase):
|
||||
def test_index_html(self):
|
||||
result = self.app.post('/', data={'q': 'test'})
|
||||
self.assertIn(
|
||||
'<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/default/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz">Second <span class="highlight">Test</span></a></h3>', # noqa
|
||||
'<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/default/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqa
|
||||
result.data
|
||||
)
|
||||
self.assertIn(
|
||||
|
||||
Reference in New Issue
Block a user