如何在Yii2中使用Froala WYSIWYG编辑器在保存内容时禁用html编码?

如何在Yii2中使用Froala WYSIWYG编辑器在保存内容时禁用html编码?,yii2,froala,Yii2,Froala,我已经在我的Yii2应用程序中使用了Froala编辑器。在将内容保存到数据库列问题时,它添加了HTML标记。我怎样才能禁用该选项,我只想将内容按原样保存 <?php echo froala\froalaeditor\FroalaEditorWidget::widget([ 'model' => $model, 'attribute' => 'question', 'options' => [ //

我已经在我的Yii2应用程序中使用了Froala编辑器。在将内容保存到数据库列问题时,它添加了HTML标记。我怎样才能禁用该选项,我只想将内容按原样保存

 <?php echo froala\froalaeditor\FroalaEditorWidget::widget([
        'model' => $model,
        'attribute' => 'question',
        'options' => [
            // html attributes
            'id'=>'question'
        ],
        'clientOptions' => [
            'toolbarInline' => false,
            'theme' => 'royal', //optional: dark, red, gray, royal
            'language' => 'en_gb' // optional: ar, bs, cs, da, de, en_ca, en_gb, en_us ...
        ]
    ]); ?>
试试这个:

<?php echo froala\froalaeditor\FroalaEditorWidget::widget([
    'model' => $model,
    'attribute' => 'question',
    'options' => [
        // html attributes
        'id'=>'question'
    ],
    'clientOptions' => [
        'toolbarInline' => false,
        'theme' => 'royal', //optional: dark, red, gray, royal
        'language' => 'en_gb',
        'entities' => '', // <- this
    ]
]); ?>