diff --git a/resources/views/json.blade.php b/resources/views/json.blade.php index 5889b64..59ef3c7 100644 --- a/resources/views/json.blade.php +++ b/resources/views/json.blade.php @@ -20,8 +20,8 @@ "id": "{{ url($item->id) }}", "title": "{{ $item->title }}", "url": "{{ url($item->link) }}", - "content_html": "{!! str_replace('"', '\\"', $item->summary) !!}", - "summary": "{!! str_replace('"', '\\"', $item->summary) !!}", + "content_html": {!! json_encode($item->summary) !!}, + "summary": {!! json_encode($item->summary) !!}, "date_published": "{{ $item->timestamp() }}", "date_modified": "{{ $item->timestamp() }}", "authors": [{ "name": "{{ $item->authorName }}" }],