I have the following blade template in laravel
<h3>Category</h3>
<div class="leftBoxBody">
<ul class="cat-link">
@foreach($categories as $category)
<li>{{Html::link('category/'.$category->id, $category->name)}}</li>
@endforeach
</ul>
</div>
But its being generated into raw text instead of html tags output:
Why is this ?
It is happening because of escaping. Try with -
{!! Html::link('category/'.$category->id, $category->name) !!}