samedi 28 novembre 2015

Laravel HTML output

I'm using Laravel 5 and Summernote editor, with some issues. I have a page where I can write an article and then save it which works fine. But when i try to edit the article, I get the html code in the textarea instead of getting the formatted content.

in add-article.blade.php:

{!! Form::textarea('body','',['name'=>'body','id'=>'body','class' => 'form-control']) !!}

in edit-article.blade.php:

{!! Form::textarea('body',$article->body,['name'=>'body','id'=>'body','class' => 'form-control']) !!}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1OwP45v
via IFTTT

Aucun commentaire:

Enregistrer un commentaire