Issue #1888862 by enginpost, valthebald, rooby: Node add page help text can contain invalid markup.
parent
c135816f1c
commit
d575da5769
|
@ -131,12 +131,12 @@ function node_help($path, $arg) {
|
|||
case 'node/%/edit':
|
||||
$node = node_load($arg[1]);
|
||||
$type = node_type_load($node->bundle());
|
||||
return (!empty($type->help) ? '<p>' . filter_xss_admin($type->help) . '</p>' : '');
|
||||
return (!empty($type->help) ? filter_xss_admin($type->help) : '');
|
||||
}
|
||||
|
||||
if ($arg[0] == 'node' && $arg[1] == 'add' && $arg[2]) {
|
||||
$type = node_type_load($arg[2]);
|
||||
return (!empty($type->help) ? '<p>' . filter_xss_admin($type->help) . '</p>' : '');
|
||||
return (!empty($type->help) ? filter_xss_admin($type->help) : '');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue