Noescape (#88)

* disable html escaping for short description

* provide noescape function for templates

* move template functions before template loading

* go fmt

* linter fixes
This commit is contained in:
f0x52 2021-07-13 16:05:03 +02:00 committed by GitHub
commit f05b255511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

View file

@ -9,7 +9,7 @@
<h3>This is the default landing page, you can edit it from <span class="accent">./web/template/index.tmpl</span></h1>
<p>
{{.instance.ShortDescription}}
{{.instance.ShortDescription |noescape}}
</p>
</section>