Skip to content

Commit

Permalink
Escape tagline and images in export json feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
cpreisinger committed Oct 11, 2021
1 parent e619224 commit 24d8af2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ permalink: /feed-open.json
"challenge-title": {{ item.challenge-title | jsonify }},
"permalink": "{{ site.url }}{{ item.permalink }}",
"external-url": "{{ item.external-url }}",
"card-image": "{{ site.url }}{{ item.card-image }}",
"agency-logo": "{{ site.url }}/{{ item.agency-logo }}",
"tagline": {{ item.tagline | jsonify }},
"card-image": "{{ site.url }}{{ item.card-image | strip | uri_escape }}",
"agency-logo": "{{ site.url }}/{{ item.agency-logo | strip | uri_escape }}",
"tagline": {{ item.tagline | strip | jsonify }},
"legal-authority": "{{ item.legal-authority }}",
"fiscal-year": "{{ item.fiscal-year }}",
"type-of-challenge": {{ item.type-of-challenge | jsonify }},
Expand Down
4 changes: 2 additions & 2 deletions feed3.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ permalink: /feed-closed.json
"permalink": "{{ site.url }}{{ item.permalink }}",
"external-url": "{{ item.external-url }}",
"card-image": "{{ site.url }}{{ item.card-image | strip | uri_escape }}",
"agency-logo": "{{ site.url }}/{{ item.agency-logo }}",
"tagline": "{{ item.tagline | strip | escape }}",
"agency-logo": "{{ site.url }}/{{ item.agency-logo | strip | uri_escape }}",
"tagline": {{ item.tagline | strip | jsonify }},
"legal-authority": "{{ item.legal-authority }}",
"fiscal-year": "{{ item.fiscal-year }}",
"type-of-challenge": {{ item.type-of-challenge | jsonify }},
Expand Down

0 comments on commit 24d8af2

Please sign in to comment.