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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -