ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

break

Summary

Returns the input string with all newlines converted to HTML breaks.

Usage

input|break()
 

Returns

A string with HTML breaks.

Description

This operator takes a string as input. It does not replace newline characters/sequences, but it does insert HTML break tags ( <br /> ) before all newlines in a string and returns a modified version of the input.

Examples

Example 1

{'The lazy
cat
jumps over
the quick rat.'|break()}

The following output will be produced:

The lazy<br />cat<br />jumps over<br />the quick rat.

Balazs Halasy (05/02/2004 10:52 am)

Ester Heylen (09/08/2010 12:50 pm)

Balazs Halasy, Ester Heylen


Comments

There are no comments.