Index: panels.module
===================================================================
--- panels.module	(revision 1621)
+++ panels.module	(working copy)
@@ -304,7 +304,7 @@
 // panels database functions
 
 /**
- * Forms the basis of a panel display 
+ * Forms the basis of a panel display
  */
 class panels_display {
   var $args = array();
@@ -414,6 +414,11 @@
     $displays[$pane->did]->panels[$pane->panel][] = $pane->pid;
     $displays[$pane->did]->content[$pane->pid] = $pane;
   }
+  foreach (module_implements('panels_pre_render') as $module) {
+    $panel_info = array_keys($displays);
+    $function = $module . '_panels_pre_render';
+    $function($panel_info[0]);
+  }
   return $displays;
 }
 
@@ -595,7 +600,7 @@
       $later[$pid] = $pane;
       continue;
     }
-  
+
     $panes[$pid] = panels_render_pane($display, $pane);
   }
 
@@ -608,9 +613,9 @@
   // panes are in the proper order.
   $content = array();
   foreach ($display->panels as $panel_name => $pids) {
-    $panel = array(); 
+    $panel = array();
     foreach ($pids as $pid) {
-      if (!empty($panes[$pid])) { 
+      if (!empty($panes[$pid])) {
         $panel[$pid] = $panes[$pid];
       }
     }
Index: content_types/block.inc
===================================================================
--- content_types/block.inc	(revision 1621)
+++ content_types/block.inc	(working copy)
@@ -31,7 +31,7 @@
   $block->module = $conf['module'];
   $block->delta = $conf['delta'];
   if ($conf['override_title']) {
-    $block->subject = check_plain($conf['override_title_text']);
+    $block->subject = filter_xss_admin($conf['override_title_text']);
   }
 
   // Test for block visibility
Index: content_types/node_content.inc
===================================================================
--- content_types/node_content.inc	(revision 1621)
+++ content_types/node_content.inc	(working copy)
@@ -51,7 +51,7 @@
       $node->panel_identifier = $conf['identifier'];
     }
 
-    $block->subject = check_plain($node->title);
+    $block->subject = filter_xss_admin($node->title);
 
     unset($node->title);
     $block->content = panels_admin_node_content($node, $conf);
Index: content_types/node_type_desc.inc
===================================================================
--- content_types/node_type_desc.inc	(revision 1621)
+++ content_types/node_type_desc.inc	(working copy)
@@ -27,8 +27,8 @@
 
   if ($node) {
     $type = node_get_types('type', $node);
-    $block->subject = check_plain($type->name);
-    $block->content = check_plain($type->description);
+    $block->subject = filter_xss_admin($type->name);
+    $block->content = filter_xss_admin($type->description);
     $block->delta = $node->type;
   }
   else {
Index: content_types/node.inc
===================================================================
--- content_types/node.inc	(revision 1621)
+++ content_types/node.inc	(working copy)
@@ -49,7 +49,7 @@
   $block->delta = $node->nid;
 
   if (empty($conf['override_title'])) {
-    $block->subject = check_plain($node->title);
+    $block->subject = filter_xss_admin($node->title);
   }
   else {
     $block->subject = filter_xss_admin($conf['override_title_text']);
@@ -163,6 +163,6 @@
 function panels_admin_title_node($conf) {
   $node = node_load($conf['nid']);
   if ($node) {
-    return check_plain($node->title);
+    return filter_xss_admin($node->title);
   }
 }
