[Zope] Re: html space( ) in string

Evan Simpson evan@4-am.com
Tue, 25 Mar 2003 13:17:17 -0600


Jos van der Vleuten wrote:
> The following code-snippet:
>         global space python:[' ;'];
>         global str_html_space python:space[0]*new_len_title;
> would be rendered in html as: ........... ........
> How can i solve this so that it will render a correct html space ( )?

The problem is in the rendering, not the variable definition.  If you're 
inserting this string with tal:replace or tal:content, use the 
'structure' keyword to prevent HTML escaping.

Cheers,

Evan @ 4-am