Bruce Gust
asked on
How can I get this link to show up as a link and not as text in Laravel
ASKER
Chris!
When I do this: {{ !! $event_featured->facility !! }}, I get this error:
syntax error, unexpected '!', expecting ')' (View: C:\wamp64\www\new_nomas\resources\views\events_solo.blade.php)
But, to your point, when I do this: <?php echo $event_featured->facility;?>, the link shows up just fine. So, you're absolutely on point as far as what you're talking about with Blade filtering out htmlspecial characters, but I think I'm still doing something wrong.
When I do this: {{ !! $event_featured->facility !! }}, I get this error:
syntax error, unexpected '!', expecting ')' (View: C:\wamp64\www\new_nomas\resources\views\events_solo.blade.php)
But, to your point, when I do this: <?php echo $event_featured->facility;?>, the link shows up just fine. So, you're absolutely on point as far as what you're talking about with Blade filtering out htmlspecial characters, but I think I'm still doing something wrong.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Got it!
Thank you!
Thank you!
I'm assuming you're using Blade syntax to output your data. By default, Blade runs data through various filters as a security precaution (such as htmlspecialchars). To avoid that, you need to use a slightly different Blade syntax:
Open in new window
Note the exclamation marks !