[ZPT] preventing escaping of less-than and greater-thans in tal:replace

Don Morrison donmorrison at gmail.com
Mon Aug 14 15:10:27 EDT 2006


> Well, you will hit problems with your define because that will run
> before your repeat. Remove it and be happy.


Ah thanks, that's much better. :)

    <select name="task" tabindex="2" onchange="ifnew_showdiv('new_task')">
      <option tal:repeat="record task_list"
              tal:attributes="label record/name; value record/task_id"
tal:content="record/name">
      Example Option
      </option>
      <option label="New" value="New">New</option>
    </select>


More information about the ZPT mailing list