Active
Project:
Hierarchical Select Node Reference
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2011 at 16:53 UTC
Updated:
22 Dec 2011 at 16:53 UTC
Hi,
In your theme hook 'theme_hs_nodereference_lineage' (theme.inc line 111) you pass $item['label'] through check_plain()
or l() without the HTML flag set on.
This $items are generated by the '_hierarchical_select_dropbox_generate' function (theme.inc line 72) which has already passed the item label through check_plain() :
hierarchical_select.module line 2133
// We will also need the labels of each item in the rendering layer.
foreach ($dropbox->lineages as $id => $lineage) {
foreach ($lineage as $level => $item) {
$dropbox->lineages[$id][$level] = array('value' => $item, 'label' => check_plain(module_invoke($config['module'], 'hierarchical_select_item_get_label', $item, $config['params'])));
}
}
So it output some things like "Jeu complet D'aiguilles".
You simply have to remove the check_plain() call and pass the HTML flag to the l() function to make it work.
Thanks.