From c8df8a7c8cd73f680fa2d0422d93e2ed29e2fd16 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 3 May 2018 15:15:50 -0700 Subject: Fix escaping issue for Markdown editor --- app/Helper/FormHelper.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/Helper/FormHelper.php b/app/Helper/FormHelper.php index 9eabd724..c6948a22 100644 --- a/app/Helper/FormHelper.php +++ b/app/Helper/FormHelper.php @@ -213,7 +213,6 @@ class FormHelper extends Base { $params = array( 'name' => $name, - 'text' => isset($values[$name]) ? $values[$name] : '', 'css' => $this->errorClass($errors, $name), 'required' => isset($attributes['required']) && $attributes['required'], 'tabindex' => isset($attributes['tabindex']) ? $attributes['tabindex'] : '-1', @@ -232,7 +231,9 @@ class FormHelper extends Base $params['suggestOptions']['triggers']['@'] = $this->helper->url->to('UserAjaxController', 'mention', array('project_id' => $values['project_id'], 'search' => 'SEARCH_TERM')); } - $html = '
'; + $html = '
'; + $html .= ''; + $html .= '
'; $html .= $this->errorList($errors, $name); return $html; -- cgit v1.2.3