Remove link from $title in comments I'm using Drupal 7. When I post a comment to an article, its title looks like &lt;a class="permalink" rel="bookmark" href="/comment/9#comment-9"&gt;comment title&lt;/a&gt;.

I need only the “comment title” to be displayed, without the link.

I found the code in the comment.tpl.php template where the title of the comment is printing.

  &lt;?php print render($title_prefix); ?&gt;
  &lt;h2&lt;?php print $title_attributes; &gt;&gt;&lt;b&gt;&lt;?php print $title&gt;&lt;/b&gt;&lt;/h2&gt;

  &lt;?php print render($title_suffix); ?&gt;


As is said in the file description, $title already contains the link, so I can’t change it!


  $title: Linked title


Does anybody know if there is a way to print the comment's title without a link?
Instead of 

&lt;?php print $title; ?&gt;


You can do:

&lt;?php print check_plain($comment-&gt;subject); ?&gt;