Html-encode date ranges in html export

This commit is contained in:
Alexey Golub 2018-06-26 23:23:18 +03:00
parent 7ecf90d1cb
commit 69088b83eb

View file

@ -27,11 +27,11 @@
{{ if From || To }}
<div class="info__channel-date-range">
{{ if From && To }}
Between {{ From | FormatDate }} and {{ To | FormatDate }}
Between {{ From | FormatDate | HtmlEncode }} and {{ To | FormatDate | HtmlEncode }}
{{ else if From }}
After {{ From | FormatDate }}
After {{ From | FormatDate | HtmlEncode }}
{{ else if To }}
Before {{ To | FormatDate }}
Before {{ To | FormatDate | HtmlEncode }}
{{ end }}
</div>
{{ end }}