I'm using node_load to display the body content of a node-referenced node on another node.

$artistid = $node->field_event_artist[0]['nid']; // get the node referenced node 
$artistnode = node_load($artistid); // load the node 
$bio = $artistnode->body; // get the node body
echo $bio;  

When the bio displays, it loses the set input format (that automatically adds paragraphs and links), and just returns unformatted text.

Is there anything I can do to return the text WITH the formatting?

Thanks for any help!

Comments

charlie-s’s picture

hitfactory’s picture

You need to do

$bio = check_markup($artistnode->body, $artistnode->format, FALSE);