TinyMCE in Yii 2 — after the text formatting displays the html tags. How to fix?

Hooked TinyMCE widget to a form
<?= $form->field($model, 'content')->widget(TinyMce::className(), [
 'options' => ['rows' => 12],
 'language' => 'EN',
 'clientOptions' => [
 'plugins' => [
 'advlist autolink lists link charmap print preview hr pagebreak',
 'textcolor searchreplace wordcount visualblocks visualchars code fullscreen nonbreaking',
 'save insertdatetime media table contextmenu template paste image'
 'toolbar' => 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image'
]) ?>

After editing the text (for example, after the use of italics or poluianov scripts), the page displays the text with tags.

Something like this:

April 4th 20 at 00:37
1 answer
April 4th 20 at 00:39
This is called formatting the data.

For flexible formatting the HTML on the page or saved, the Yii team has been implemented a special helper HTML Purifier.. He has a lot of different settings. You can see how to use the example of Yii 1.0. Or to read the official documentation.

Find more questions by tags Yii