1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00

decode $preview html chars

This commit is contained in:
Samuel Štancl 2021-04-06 22:37:36 +02:00
parent 8758c8db3f
commit 865c5ea03e

View file

@ -27,8 +27,8 @@
<meta property="og:description" content="Make your Laravel code cleaner, faster, and safer." />
@if($preview)
<meta property="og:image" content="https://i.useflipp.com/g6demrp3y3rz.png?content={{ urlencode($preview) }}" />
<meta property="twitter:image" content="https://i.useflipp.com/g6demrp3y3rz.png?content={{ urlencode($preview) }}" />
<meta property="og:image" content="https://i.useflipp.com/g6demrp3y3rz.png?content={{ urlencode(html_entity_decode($preview)) }}" />
<meta property="twitter:image" content="https://i.useflipp.com/g6demrp3y3rz.png?content={{ urlencode(html_entity_decode($preview)) }}" />
@else
<meta property="og:image" content="{{ asset('og.png') }}" />
<meta property="twitter:image" content="{{ asset('og.png') }}" />