我想要这个结果:
<a href="path/to/something">This is a link! <span>with a span inside!</span></a>
这呈现了一个链接:
$render = array(
'link' => array(
'#type' => 'link',
'#title' => t("This is a link!"),
'#href' => "path/to/something",
),
);
为什么这不会在链接内呈现跨度?
$render = array(
'link' => array(
'#type' => 'link',
'#title' => t("This is a link!"),
'#href' => "path/to/something",
'span' => array(
'#type' => 'markup',
'#markup' => ' <span>with a span inside!</span>',
),
),
);
提前致谢!