Skip to content

Commit

Permalink
Modify escape processing when sending succeeding contents. close #9
Browse files Browse the repository at this point in the history
  • Loading branch information
DBC-Works committed Aug 20, 2018
1 parent 279d15c commit e90bf6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/following.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"contents": [
{% for content in main_contents %}
{
"title": "{{ content.title|replace({'"': '\"'}) }}",
"title": "{{ content.title|replace({'"': '\\"'}) }}",
"path": "{{ content.path }}",
"body": "{{ content.body|replace({'"': '\\"', "\n": "\\n", "\r": "\\r"}) }}",
"body": "{{ content.body|replace({'"': '\\"', "\n": "\\n", "\r": "\\r", "\t": "\\t"}) }}",
"date": "{{ content.date|date(fmt_dt) }}",
"update": "{{ content.update|date(fmt_dt) }}",
"tags": [
Expand Down

0 comments on commit e90bf6f

Please sign in to comment.