[ZPT] newline_to_br

Jonas Nielsen jonas.nielsen at eea.eu.int
Wed Apr 21 03:16:15 EDT 2004


I have the following line of code

<div tal:define="pss modules/Products.PythonScripts.standard">
    <div tal:content="python:pss.newline_to_br(question_data['question'])">
    </div>
    <div tal:content="python:pss.newline_to_br('a line\na new line\n')">
    </div>
</div>

This results in the following html

a line&lt;br&gt;
a new line&lt;br&gt;

How do I get the following ?:

a line<br>
a new line<br>




More information about the ZPT mailing list