django-crispy-forms / crispy-bootstrap4

Bootstrap 4 template pack for django-crispy-forms
MIT License
11 stars 5 forks source link

Update field.html to add |safe template tag #19

Closed jplaverdure closed 1 year ago

jplaverdure commented 1 year ago

field.label was no longer marked as 'safe', preventing the use of html content in model's verbose_name definition

smithdc1 commented 1 year ago

Thanks for the PR. However, this is a deliberate change to avoid content accidentally being marked as safe in a template and therefore avoid a potential security issue.

If you need to mark the label as safe this should be done in your project code.