By ron williams on
I use the following code portion for a node-type theme:
<?php print $node->content['field_screenshot']['#value'] ?>
<a href="<?php print check_url($field_site_url[0]['value']) ?>"><?php print $title ?></a> <?php print $node->content['body']['#value'] ?>
I need to remove the <p> tag that drupal inserts for <?php print $node->content['body']['#value'] ?>. How can this be done, there is no p tag within the node.
Comments
Input formats
Start by going to Administer › Site configuration › Input formats, selecting "Configure" for the input format your node is using and switching off "Line break converter". You'll have to manually add any p and br tags you need, though.