Skip to content
Snippets Groups Projects
Commit 16a429ec authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2307125 by webchick: Fixed HTML double-escaping in EditorImageDialog.

parent 36faf4e8
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
namespace Drupal\editor\Form;
use Drupal\Component\Utility\Bytes;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Form\FormBase;
use Drupal\filter\Entity\FilterFormat;
use Drupal\Core\Ajax\AjaxResponse;
......@@ -103,8 +104,8 @@ public function buildForm(array $form, array &$form_state, FilterFormat $filter_
$form['dimensions'] = array(
'#type' => 'item',
'#title' => $this->t('Image size'),
'#field_prefix' => '<div class="container-inline">',
'#field_suffix' => '</div>',
'#field_prefix' => SafeMarkup::set('<div class="container-inline">'),
'#field_suffix' => SafeMarkup::set('</div>'),
);
$form['dimensions']['width'] = array(
'#title' => $this->t('Width'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment