I am using Laravel 5.4, and I retrieve a text from the formatted database using ckeditor
<p><strong>Lorem ipsum dolor sit amet, consectetu</strong></p>
I know that the blade uses {!! !!} to format it but this time I use ajax, and I want to set this text in a Laravel accessor
public function getNoticiaAttribute($value)
{
return $value;
}
Here I would have to return the value set as if it were blade with {!! !!}
The information provided is by axios:
searchData() {
axios.post('/news/search', $('#frmSearchNews').serialize()).then(res => {
this.noticias = res.data;
});
}