From d575da5769c7df33f26e4293b66fe11214693fe9 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 8 Jan 2014 01:16:58 -0800 Subject: [PATCH] Issue #1888862 by enginpost, valthebald, rooby: Node add page help text can contain invalid markup. --- core/modules/node/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 8becc7f2ad8..f0c7e2c3fa4 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -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) ? '

' . filter_xss_admin($type->help) . '

' : ''); + 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) ? '

' . filter_xss_admin($type->help) . '

' : ''); + return (!empty($type->help) ? filter_xss_admin($type->help) : ''); } }