Keep line breaks when printing custom plain text textarea field I'm using Drupal 7. I'm printing out a custom plain text textarea field in the node template using the following code:

print ($taxonomy_term-&gt;field_address['und'][0]['value']);


However, when I print it out I lose all the line breaks.  Is there a way I can keep the line breaks in when I print out the field value?  

I have already changed the plain text format to add "limit allowed HTML tags" rule for &lt;a&gt; &lt;br&gt; &lt;p&gt;, and removed the "display any HTML as plain text" rule.

Many thanks,

Ben
I worked it out. I just needed to use the following code:

print nl2br($taxonomy_term-&gt;field_address['und'][0]['value']);


This uses the print nl2br function to convert line breaks to &lt;br&gt; tags.