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.
In theme_html_tag(), make children of the HTML tag when used in a render array into children in the final rendered HTML, so
$render_array = array(
'a' => array(
'#type' => 'html_tag',
'#tag' => 'div',
'b' => array(
'#type' => 'html_tag',
'#tag' => 'div',
'#value' => 'foo'
)
)
);
drupal_render($render_array);
becomes
<div>
<div>
foo
</div>
</div>
Comments
Comment #1
lauriiiComment #5
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedThis functionality was handled in #2694535: Support rect property and nested render arrays in html_tag for dynamic SVGs