Saturday, September 7, 2019

php - Outputing HTML with PHP7 null coalesce

I want to use PHP7's Null Coalesce feature to output HTML, is this possible?



{{$site->address_line_2 ?? "Address Line 2"}}




Im currently using Laravel and blade, and the above outputs



Address Line 2



As a string instead of a HTML tag with the content Address Line 2

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...