Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Bootstrap escapes html in legends. See the below code and screenshot:
p1_vagsex:
'#type': radios
'#title': 'During the past 3 months, did you have vaginal sex (intercourse) with <u>[yamlform-submission:values:p1_name]</u>?'
'#options':
1: 'Yes'
0: 'No'
'#required': true
p1_vagsxnum:
'#type': number
'#title': 'During the past 3 months, how many times did you have vaginal sex with <u>[yamlform-submission:values:p1_name]</u>?'
'#min': 0
'#states':
visible:
':input[name="p1_vagsex"]':
value: 1
required:
':input[name="p1_vagsex"]':
value: 1
Here is the legend in action:
Note: This issue is what I incorrectly summarized in https://www.drupal.org/node/2797785.
Comment | File | Size | Author |
---|---|---|---|
#2 | Test Element HTML Markup YAML Form Demo Site.png | 1.41 MB | jrockowitz |
legend_bootstrap_escaped.png | 80.61 KB | robpowell |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedThis is a core issue #2348851: Regression: Allow HTML tags inside detail summary
Attached is screenshot further documenting.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer commented