summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/editor.php3
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']))
]));
}
});