? codefilter-advanced-help.patch
? codefilter-advanced-help2.patch
Index: advanced_help.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advanced_help/advanced_help.module,v
retrieving revision 1.41
diff -u -p -r1.41 advanced_help.module
--- advanced_help.module	28 Oct 2008 17:33:47 -0000	1.41
+++ advanced_help.module	5 Dec 2008 04:15:55 -0000
@@ -625,6 +625,14 @@ function advanced_help_view_topic($modul
 
     $output = '<div class="advanced-help-topic">' . $output . '</div>';
     drupal_alter('advanced_help_topic', $output, $popup);
+    if (module_exists('codefilter')) {
+      $from = array('&lt;?php', '?&gt;');
+      $to = array('<?php', '?>');
+      $output = str_replace($from, $to, $output);
+      $output = codefilter_filter('prepare', 0, -1, $output);
+      $output = codefilter_filter('process', 0, -1, $output);
+      $output = str_replace($to, $from, $output); // Restore unfiltered stray elements.
+    }
     return $output;
   }
 }
