How to apply a filter my output?

Bob Humphrey - November 10, 2009 - 19:58

I've created a new node type, which I am trying to display in a block.

The body field of my node is filtered with the Filtered HTML filter, at least on the data entry form.

However, when I create my block using a function that implements hook_block(), the body of my node appears on the page without the filter being applied.

My code to output the body is:

$block['content'] = t($node->body);

How do I apply the Filtered HTML filter to my output?

 
 

Drupal is a registered trademark of Dries Buytaert.