diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index 40ef0d1..ea7332f 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -2393,8 +2393,11 @@ function comment_unpublish_action($comment, $context = array()) {
  * @see comment_unpublish_by_keyword_action_submit()
  */
 function comment_unpublish_by_keyword_action($comment, $context) {
+  $new_node=new stdClass();
+  comment_build_content($comment,$new_node);
+  $text = drupal_render($comment->content);  
   foreach ($context['keywords'] as $keyword) {
-    $text = drupal_render($comment);
+
     if (strpos($text, $keyword) !== FALSE) {
       $comment->status = COMMENT_NOT_PUBLISHED;
       watchdog('action', 'Unpublished comment %subject.', array('%subject' => $comment->subject));
