1
Fork 0

Fix HTML encoding

This commit is contained in:
Jan-Lukas Else 2020-02-19 05:51:57 +01:00
parent 8af574dc26
commit ea9fab103d
1 changed files with 4 additions and 3 deletions

View File

@ -2,9 +2,10 @@
"@context": [ "@context": [
"https://www.w3.org/ns/activitystreams" "https://www.w3.org/ns/activitystreams"
], ],
"title": {{ .Title | jsonify }}, "title": {{ (htmlUnescape .Title | safeHTML) | jsonify }},
"content_html": {{ .Content | jsonify }}, "content": {{ (htmlUnescape .Content | safeHTML) | jsonify }},
"summary": {{ .Summary | jsonify }}, "mediaType": "text/html",
"summary": {{ (htmlUnescape .Summary | safeHTML) | jsonify }},
"published": {{ dateFormat "2006-01-02T15:04:05-07:00" .Lastmod | jsonify }}, "published": {{ dateFormat "2006-01-02T15:04:05-07:00" .Lastmod | jsonify }},
"updated": {{ dateFormat "2006-01-02T15:04:05-07:00" .Date | jsonify }}, "updated": {{ dateFormat "2006-01-02T15:04:05-07:00" .Date | jsonify }},
"id": "{{ .Permalink }}", "id": "{{ .Permalink }}",