@nickywan123 you need to use {!! !!} syntax to escape the encoding. But make sure the content that you get is safe to do so.
{!! Share::page('www.google.com')->facebook() !!}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using laravel-share package and the code is supposed to look like this:
<div>
{{Share::page('www.google.com')->facebook()}}
</div>
It is supposed to translate to this in HTML tags where it displays a facebook icon:
<div id="social-links">
<ul>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=www.google.com" class="social-button " id=""
title="">
<span class="fab fa-facebook-square"></span>
</a>
</li>
</ul>
</div>
However, in my browser, it does not display the icon and instead displays the HTML texts(same as above):
How do I ensure it output the icon instead?
Please or to participate in this conversation.