Commit d575da57 authored by webchick's avatar webchick

Issue #1888862 by enginpost, valthebald, rooby: Node add page help text can contain invalid markup.

parent c135816f
......@@ -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) : '');
}
}
......
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