Forums / General / <br> in Textaereas

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

<br> in Textaereas

Author Message

Bernhard Hyden

Thursday 14 August 2003 5:25:05 am

Hi,
Is it possible to turn \n into <br> in the Backoffice, or is it a bug (feature)?

thanks,
Bernhard

Jan Borsodi

Tuesday 26 August 2003 6:32:20 am

I'm guessing you are talking about object edits (article, folders etc.)?

If so all \n (endlines) are treated specially in the xml fields, for instance two endlines will create a new paragraph. See this for more doc on the xml field.
http://www.ez.no/developer/ez_publish_3/documentation/customization/components/datatypes/ezxmltext

For all other strings you can use the nl2br template operator which turns newlines (\n) into breaks (br), or if you trying Exponential 3.2 you should use the break operator instead.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq