Don't send referrer to visited sites (#2)
* Don't send referrer to visited sites * Remove href from span elements, remove nofollow
This commit is contained in:
parent
a18afc4e84
commit
23787c1b69
@ -58,8 +58,8 @@ fn render_engine_list(engines: &[engines::Engine]) -> String {
|
|||||||
fn render_search_result(result: &engines::SearchResult) -> String {
|
fn render_search_result(result: &engines::SearchResult) -> String {
|
||||||
format!(
|
format!(
|
||||||
r#"<div class="search-result">
|
r#"<div class="search-result">
|
||||||
<a class="search-result-anchor" href="{url_attr}">
|
<a class="search-result-anchor" rel="noreferrer" href="{url_attr}">
|
||||||
<span class="search-result-url" href="{url_attr}">{url}</span>
|
<span class="search-result-url">{url}</span>
|
||||||
<h3 class="search-result-title">{title}</h3>
|
<h3 class="search-result-title">{title}</h3>
|
||||||
</a>
|
</a>
|
||||||
<p class="search-result-description">{desc}</p>
|
<p class="search-result-description">{desc}</p>
|
||||||
@ -78,8 +78,8 @@ fn render_featured_snippet(featured_snippet: &engines::FeaturedSnippet) -> Strin
|
|||||||
format!(
|
format!(
|
||||||
r#"<div class="featured-snippet">
|
r#"<div class="featured-snippet">
|
||||||
<p class="search-result-description">{desc}</p>
|
<p class="search-result-description">{desc}</p>
|
||||||
<a class="search-result-anchor" href="{url_attr}">
|
<a class="search-result-anchor" rel="noreferrer" href="{url_attr}">
|
||||||
<span class="search-result-url" href="{url_attr}">{url}</span>
|
<span class="search-result-url">{url}</span>
|
||||||
<h3 class="search-result-title">{title}</h3>
|
<h3 class="search-result-title">{title}</h3>
|
||||||
</a>
|
</a>
|
||||||
{engines_html}
|
{engines_html}
|
||||||
|
Loading…
Reference in New Issue
Block a user