In my custom module (in Drupal 8), I am using a form field (in a custom form) to use CKEDITOR with the following code which loads the editor fine.
$form['full_detail_text'] = array(
'#type' => 'text_format',
'#format' => 'full_html',
'#title' => t('Full Detail'),
'#rows' => 5,
);
The following code saves the posted data in the database.
$query = db_insert('my_table')
->fields(array(
'full_detail_text' => $form_state->getValue('english_copy_text')[value],
'date' => REQUEST_TIME,
))
->execute();
I am using a view page display to render this output, but the output for this field is displaying data as plain text (no formatting) along with HTML code instead of formatted data same as in the editor.
Is there a configuration setting I need to adjust or perhaps hook_views_pre_render()
to transform this field's data from plain text to HTML markup?