".$content."".$name."
"; } function add_hid($content = '') { /* This function breaks if $content contains a single quote ('). In particular, an href with a single quote will get escaped for some reason by PHP. Not sure how to fix this. */ // $content = preg_replace("/(.*)<\/p>/e", 'add_plink("\\1")', htmlentities($content)); // return html_entity_decode($content); $content = preg_replace("/
(.*)<\/p>/e", 'add_plink("\\1")', $content); return $content; } function reset_hid($content = '') { global $purple_hid; $purple_hid = 0; return $content; } add_filter('the_content', 'add_hid'); add_filter('the_permalink', 'reset_hid'); ?>