Better Bootstrap 4 support and Former::plaintext() security fix
Pre-release
Pre-release
tortuetorche
released this
21 Jan 16:07
·
21 commits
to master
since this release
Added
- Add CSS class to the label of a group, with the
addLabelClass()
method (#604)
Changed
- Better Bootstrap 4 support
- Breaking change: Escape HTML value of
plaintext
field by default (#605)
You can disable this new behavior with theescape_plaintext_value
former config option set tofalse
.
In your former config fileconfig/former.php
, you can enable or disable this feature:
<?php
return [
//...
// Whether Former should escape HTML tags of 'plaintext' fields
// Enabled by default
//
// Instead of disabled this option,
// you should use the 'HtmlString' class:
// Former::plaintext('text')
// ->forceValue(
// new Illuminate\Support\HtmlString('<b>HTML data</b>')
// )
'escape_plaintext_value' => true,
//...
];