diff options
Diffstat (limited to 'controllers/editor.php')
-rw-r--r-- | controllers/editor.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controllers/editor.php b/controllers/editor.php index caac4a3..15d65ef 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -21,7 +21,8 @@ $app->post('/editor/publish', function() use($app) { $app->response()['Content-type'] = 'application/json'; $app->response()->body(json_encode([ - 'location' => $r['location'] + 'location' => $r['location'], + 'response' => trim(htmlspecialchars($r['response'])) ])); } }); |