aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/base/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/routes.go')
-rw-r--r--plugins/base/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 7b02f11..a5c6c21 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -250,6 +250,7 @@ func handleGetPart(ctx *koushin.Context, raw bool) error {
// TODO: be more strict
p.AllowElements("style")
p.AllowAttrs("style")
+ p.AddTargetBlankToFullyQualifiedLinks(true)
body = p.Sanitize(body)
isHTML = true
}