Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add HTML to a panel body #310

Open
blonkm opened this issue Jun 3, 2016 · 2 comments
Open

Can't add HTML to a panel body #310

blonkm opened this issue Jun 3, 2016 · 2 comments

Comments

@blonkm
Copy link

blonkm commented Jun 3, 2016

I would like to add html to the body of a panel, but it gets encoded (escaped?) Now I reverted to a regular html bootstrap panel, but I really like the short syntax of bootstrapper. Is there a way to add some html and not have it encoded?

@blonkm
Copy link
Author

blonkm commented Jun 3, 2016

I went back to regular blade syntax, and made a layout for my info panel. Just so everyone knows what I mean by extra html here is my infopanel layout:

<div class='panel panel-default'>
    <div class='panel-heading'>
        <h3 class='panel-title'>{{ $title }}</h3>
    </div>
    <div class='panel-body'>
        {{ $body }}
        {!! HTML::decode(link_to_route($route, '<i class="fa fa-info fa-lg" data-toggle="tooltip" title="show details"></i>', [$id], ['class' => 'btn-sm'])) !!}
    </div>
</div>

@PatrickRose
Copy link
Collaborator

We're not escaping anything on our end - it's probably Laravel escaping it for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants