php - How to echo / embed laravel view output in layout as variable -
i want use view helper {{ render_part("user_profile"); }} in laravel layout, , render_profile return , html, right prints plain string , not rendering html, need guide understand laravel blade/view compilation architecture can write custom classes overriding core methods.
i've upvoted gerard reches answer. if want render views controller , display html in views:
by default, blade {{ }}
statements automatically sent through php's htmlentities function prevent xss attacks. if not want data escaped, may use following syntax:
{!! $myhtml !!}
hope helps.
Comments
Post a Comment