First on my model validation:
[ ['content','title','excerpt'], 'filter', 'filter' => 'htmlspecialchars', 'on' => ['create','modify']],
展示文章的时候
There is no problem, but 编辑的时候
:
PS: I did not show the time htmlspecialchars_decode
, directly:
No Problem ~
Just want to ask yii
what should be done in the form?
Form code:
field($model, 'content')->textarea(['rows' => 6,'style'=>'resize:vertical','id'=>'editor']) ?>
Reply content:
First on my model validation:
[ ['content','title','excerpt'], 'filter', 'filter' => 'htmlspecialchars', 'on' => ['create','modify']],
展示文章的时候
There is no problem, but 编辑的时候
:
PS: I did not show the time htmlspecialchars_decode
, directly:
No Problem ~
Just want to ask yii
what should be done in the form?
Form code:
field($model, 'content')->textarea(['rows' => 6,'style'=>'resize:vertical','id'=>'editor']) ?>
Html::d ecode ($var)?