marvinlabs / laravel-html-bootstrap-4

Bootstrap 4 fluent HTML builder
MIT License
42 stars 15 forks source link

Labels can not contain html #34

Closed axyr closed 6 years ago

axyr commented 6 years ago

When adding an 'accept terms' checkbox you can not add a link to a Terms & Conditions page/doc

 {{ bs()->formGroup(bs()->checkBox('accept_terms', 'I agree with the <a href="/terms" target="_blank">Terms & Conditions</a>'), '') }}

MarvinLabs\Html\Bootstrap\Elements\CheckBox::label() uses:

 ->text($element->description)

This probably can be replaced with : ?

 ->html($element->description)
vpratfr commented 6 years ago

Hi

Can you post a PR about this? Change could be made to radio buttons too.

axyr commented 6 years ago

fixed with https://github.com/marvinlabs/laravel-html-bootstrap-4/pull/36