Sometimes, we want to display HTML with Blade and PHP.
In this article, we’ll look at how to display HTML with Blade and PHP.
How to display HTML with Blade and PHP?
To display HTML with Blade and PHP, we wrap out variable with special delimiters.
For instance, we write
{!! $text !!}
to render the $text
string as HTML.
Conclusion
To display HTML with Blade and PHP, we wrap out variable with special delimiters.