Add `htmlEscape` and `htmlUnescape` template functions
authorCathal Garvey <cathalgarvey@cathalgarvey.me>
Mon, 18 Jul 2016 22:14:05 +0000 (23:14 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 18 Jul 2016 22:14:05 +0000 (00:14 +0200)
commit20555b1630765d68c4b6d6c90406483195935faf
tree21552fd84a3426b03963c871016c4ae35f434940
parent7dd5cd675a4a62bfcd6b64b86b9514d7b9947b64
Add `htmlEscape` and `htmlUnescape` template functions

These functions allow trivial escaping and unescaping of HTML entities,
and make it far easier to compose other functions for the creation of
parameterised URLs.
docs/content/templates/functions.md
tpl/template_funcs.go
tpl/template_funcs_test.go