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->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 <a> <br> <p>
, and removed the "display any HTML as plain text" rule.
Many thanks,
Ben