Glasnost

help

 

TAL Statements: content

tal:content="expression"

The content statement replaces the content of an element by the result of its expression.

Angle-brackets and ampersands are replaced by their HTML entity equivalents [1].

Example

<h1 tal:content="currentObject.label">Title</h1>

becomes (the label of currentObject is "Free Software")

<h1>Free Software</h1>
up