Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Render breadcrumbs as HtmlString #146

Closed
wants to merge 2 commits into from
Closed

Render breadcrumbs as HtmlString #146

wants to merge 2 commits into from

Conversation

Dartui
Copy link

@Dartui Dartui commented Aug 6, 2017

For now, after trying to render breadcrumbs with @content and @yield I am getting escaped HTML code. Breadcrumbs should be returned as HtmlString, so Laravel will not escape code and display it as it is. Also with this change we can use {{ }} instead of {!! !!} to render breadcrumbs in view.

Another fix for displaying escaped HTML would be removing render() in View::render() method, because Laravel do not escape instances of View (https://github.com/laravel/framework/blob/5.4/src/Illuminate/View/Concerns/ManagesLayouts.php#L147)

@d13r
Copy link
Owner

d13r commented Aug 6, 2017

Already changed in v4.0 - see #140.

@d13r d13r closed this Aug 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants