Add noreferrer noopener on links to external resources for epub reading (#318)

This commit is contained in:
Joseph Milazzo 2021-06-20 15:15:34 -05:00 committed by GitHub
parent 0c88d91278
commit 8f4d42d13f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,7 @@ namespace API.Services
else else
{ {
anchor.Attributes.Add("target", "_blank"); anchor.Attributes.Add("target", "_blank");
anchor.Attributes.Add("rel", "noreferrer noopener");
} }
return; return;