Fix URL escaping
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
02685759dd
commit
4188812c31
|
@ -1 +1 @@
|
|||
<a class="link" href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer"{{ end }}>{{ .Text }}</a>
|
||||
<a class="link" href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>
|
||||
|
|
Loading…
Reference in New Issue