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??



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire