2amigos / yii2-ckeditor-widget

CKEditor WYSIWYG widget for Yii2.
https://2amigos.us/open-source/ckeditor-widget
Other
172 stars 111 forks source link

HTML tags when saving to db #122

Closed sgaita closed 5 years ago

sgaita commented 6 years ago

How does one strip of the html tags when saving to database. example: I have my content formatted to look like => Consists of all policy brief documents . but i am getting this instead scree

tonydspaniard commented 5 years ago

You could use strip_tags before saving to the database: https://www.php.net/manual/en/function.strip-tags.php