Published 11 months ago by lorvent
Hello, i have query like this
$data = Model::all();
the problem is, one row has code like
is there any such option available with eloquent?
Note: this data is being sent through ajax so i can't use blade escape feature.
here are the hints ..
for eloquent accessor https://laravel.com/docs/5.4/eloquent-mutators#defining-an-accessor
or you can also use
strip_tags() function to remove html tags. https://www.w3schools.com/php/func_string_strip_tags.asp