Forums / General / <br> in Textaereas

<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 eZ publish 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