{# Custom form theme based on file : Resources/views/Form/bootstrap_4_layout.html.twig
{%iflabelisnotsameas(false)-%}
where unique change is use of filter |raw on line
{%-ifcompoundisdefinedandcompound-%}
{{- label is not same as(false) ? (translation_domain is same as(false) ? label|raw : label|trans(label_translation_parameters, translation_domain))|raw -}}
{%-setelement='legend'-%}
This is to allow use of html in choice type choices label,