Merge pull request #66 from httpsecure/patch-1

Create render-link.html
This commit is contained in:
Fredrik Jonsson 2022-09-16 16:16:53 +02:00 • committed by GitHub
commit 851ef79527
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>