In WordPress, you can do the following to edit the content of an article before the page is loaded:
add_filter('the_content', 'edit_content');
function edit_content($content) {
// edit $content
return $content;
}
How can I achieve the same thing but for comments?