[EMAIL PROTECTED] wrote:
> Suppose I access this function:
> 
>       def foo():
>           return "<a href='http://mysite'>some text</a>"
> 
> In a template with this:
> 
>       ${foo()}
> 
> 
> Kid will convert '<' to &lt; which I don't want.  (It seems Kid
> tries to be nice and 'fix' special characters like < and & for you.)
> 
> *How turn off these conversions for special characters?*

If you define the function that way, you need to write ${XML(foo())} 
instead of ${foo()} or redefine your foo() function to apply the XML 
function at the end.

You don't need to to this if you define the function within Kid:

<a py:def="foo()" href='http://mysite'>some text</a>

-- Christoph

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to