Commit 0f48a70e authored by yched's avatar yched

#150297 - fix encoded raw htmlentities appearing in select widgets when using advanced

 (Views) node selection
parent 865fbc42
......@@ -457,7 +457,9 @@ function _nodereference_item($field, $item, $html = false) {
if (module_exist('views') && ($view = views_get_view($field['advanced_view']))) {
$output = theme('nodereference_item_advanced', $item, $view);
if (!$html) {
$output = strip_tags($output);
// Views theming runs check_plain (htmlentities) on the values.
// We reverse that with html_entity_decode.
$output = html_entity_decode(strip_tags($output), ENT_QUOTES);
}
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment