Support the ongoing development of Laravel.io →
Views Blade

I've used Laravel's pagination method but in my view it is escaping HTML

I'm trying:

{{$tags->render()}} (double brackets)

AND

{{{$tags->render()}}} (triple brackets)

..but both times I see HTML on my page:

<ul class="pagination"><li class="disabled">.... (in the source: &amp;lt;ul class...)

If I use <?php echo $tags->render(); ?> it works fine, but I want to only use blade tags in the view if possible. Why is this happening?

Last updated 3 years ago.
0

I assume you're with Laravel 5, use this instead

{!! $tags->render() !!}
0

Use this instead:

{!! $tags->render() !!}

Edit: Ninja'd :(

Last updated 10 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

martynbiz martynbiz Joined 15 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.