added unescaping of html values for blog posts. The function can be reused elsewhere aswell.

This commit is contained in:
rawleyIfowler
2022-02-27 11:00:39 -06:00
parent 0fae702255
commit a2779c487c
3 changed files with 14 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{{ template "header.tmpl" . }}
<div>
<h2>{{ .Post.Title }}</h2>
<div>{{ .Post.Content }}</div>
<div>{{ .Post.Content | UnescapeHTML }}</div>
<h4>Comments</h4>
{{ range $comment := .Post.Comments }}
<div class="comment">