Fix HTML encoding
This commit is contained in:
parent
8af574dc26
commit
ea9fab103d
|
@ -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 }}",
|
||||||
|
|
Reference in New Issue