Fix HTML encoding
This commit is contained in:
parent
8af574dc26
commit
ea9fab103d
|
@ -2,9 +2,10 @@
|
|||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams"
|
||||
],
|
||||
"title": {{ .Title | jsonify }},
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"summary": {{ .Summary | jsonify }},
|
||||
"title": {{ (htmlUnescape .Title | safeHTML) | jsonify }},
|
||||
"content": {{ (htmlUnescape .Content | safeHTML) | jsonify }},
|
||||
"mediaType": "text/html",
|
||||
"summary": {{ (htmlUnescape .Summary | safeHTML) | jsonify }},
|
||||
"published": {{ dateFormat "2006-01-02T15:04:05-07:00" .Lastmod | jsonify }},
|
||||
"updated": {{ dateFormat "2006-01-02T15:04:05-07:00" .Date | jsonify }},
|
||||
"id": "{{ .Permalink }}",
|
||||
|
|
Reference in New Issue