Commit 16a429ec authored by alexpott's avatar alexpott

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

parent 36faf4e8
......@@ -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'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment