Escape HTML correctly in images
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
8eeb899f8a
commit
32996b9afd
|
@ -1,4 +1,4 @@
|
|||
<div class="image-caption">
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
|
||||
<p>{{ .Text }}</p>
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text | safeHTML }}" />
|
||||
<p>{{ .Text | safeHTML }}</p>
|
||||
</div>
|
Loading…
Reference in New Issue