Add noreferrer noopener on links to external resources for epub reading (#318)
This commit is contained in:
parent
0c88d91278
commit
8f4d42d13f
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ namespace API.Services
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
anchor.Attributes.Add("target", "_blank");
|
anchor.Attributes.Add("target", "_blank");
|
||||||
|
anchor.Attributes.Add("rel", "noreferrer noopener");
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue