vendredi 30 novembre 2018

Laravel 5 - How to show variable within view with escaped html?

$var_from_controller = "<div style="color:red">Picture inside html  </div>"

@blade

<div id="my-container">
  {!! $var_from_controller !!}
</div>

It will render as a string. But I need HTML AND asset() output.

How can I do this??



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2RwdS4R
via IFTTT

Aucun commentaire:

Enregistrer un commentaire