How to remove all outgoing links from all your wordpress posts

recently found a problems that i have used some automatic content spinning systems to fill my blogs with someone else links, that's coll until panda came. now i'm getting lots of  emails from people asking to remove unnatural links (cool - why unnatural , google ?)

finally open your themes functions.php and add the following to make this task automated:

// Filter the_content

add_filter('the_content', 'rbl_remove_just_links');

// Le function

function rbl_remove_just_links($content)

{

// Search & remove link markup for all links

return preg_replace('!<a[^>]+href=[\'"]https{0,1}:[^>]+>(.+?)</a>!ism', '<em>$1</em>', $content);

}