? comment_notify.module_2.patch ? comment_notify.module_3.patch Index: comment_notify.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/comment_notify/comment_notify.module,v retrieving revision 1.66 diff -u -p -r1.66 comment_notify.module --- comment_notify.module 14 Jun 2009 14:55:02 -0000 1.66 +++ comment_notify.module 20 Oct 2009 14:49:29 -0000 @@ -366,7 +366,12 @@ function _comment_notify_mailalert($comm $languages = $languages['name']; } + // Render up the node and comment. $node = node_load($nid); + $node_teaser = node_view($node, TRUE, TRUE, FALSE); + $node_body = node_view($node, FALSE, TRUE, FALSE); + $comment_text = check_markup($comment->comment, $comment->format); + if (!isset($comment->mail)) { $comment_account = user_load(array('name' => $comment->name)); $comment_mail = $comment_account->mail; @@ -386,13 +391,13 @@ function _comment_notify_mailalert($comm variable_get('node_notify_default_mailtext', AUTHOR_MAILTEXT), array( '!commname' => $comment->name, - '!commtext' => $comment->comment, + '!commtext' => drupal_html_to_text($comment_text), '!commsubj' => $comment->subject, '!comment_url' => url('node/'. $nid, array('absolute' => TRUE, 'fragment' => 'comment-'. $cid)), '!node_title' => $node->title, - '!node_teaser' => $node->teaser, + '!node_teaser' => drupal_html_to_text($node_teaser), '!mission' => variable_get('site_mission', ''), - '!node_body' => $node->body, + '!node_body' => drupal_html_to_text($node_body), '!name' => $author->name, '!site' => variable_get('site_name', 'drupal'), '!uri' => $base_url, @@ -439,13 +444,13 @@ function _comment_notify_mailalert($comm variable_get('comment_notify_default_mailtext', DEFAULT_MAILTEXT), array( '!commname' => $comment->name, - '!commtext' => $comment->comment, + '!commtext' => drupal_html_to_text($comment_text), '!commsubj' => $comment->subject, '!comment_url' => url('node/'. $nid, array('absolute' => TRUE, 'fragment' => 'comment-'. $cid)), '!node_title' => $node->title, - '!node_teaser' => $node->teaser, + '!node_teaser' => drupal_html_to_text($node_teaser), '!mission' => variable_get('site_mission', ''), - '!node_body' => $node->body, + '!node_body' => drupal_html_to_text($node_body), '!name' => $alert->name, '!site' => variable_get('site_name', 'drupal'), '!uri' => $base_url,