Skip to content

Commit

Permalink
Remove special characters from jsonContent
Browse files Browse the repository at this point in the history
  • Loading branch information
dyfero committed Nov 16, 2022
1 parent 4b4184e commit fa8d629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/HeadlessH5PService.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public function getSettingsForContent($id): array
'library' => $uberName,
'content' => $content,
'jsonContent' => json_encode([
'params' => json_decode($content['filtered']),
'params' => json_decode(str_replace('\"', '\'', str_replace(['\n', '\t'], '', $content['filtered']))),
'metadata' => $content['metadata'],
], JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE),
'fullScreen' => $content['library']['fullscreen'],
Expand Down

0 comments on commit fa8d629

Please sign in to comment.