[Zope] Python seems to render html, can this be turned off or
escaped?
Dennis Allison
allison at sumeru.stanford.EDU
Thu Dec 16 13:52:32 EST 2004
A <pre> ... </pre> tag would be a better choice, IMHO.
On Thu, 16 Dec 2004, Guidry, Wayne wrote:
> Ok, thanks for the info
>
> Wayne
>
>
> The problem is not with python, it is that when you click on the test
> tab at the top of the python script editing page (within the ZMI) the
> data is being displayed in your web browser - which interprets html
> commands.
>
> If you want to see the html tags (for debugging purposes) when you click
> on the 'test' tab try something like:
>
> return '<textarea>'+mystring+'</textarea>
>
> This will do two things: (1) prove that it is your browser interpreting
> the html tags in the string (because your browser will create a textarea
> field) and (2) allow you to see the actual contents of 'mystring'
>
> If you dont want to display the data when you get back to dtml, use the
> dtml-call tag or the dtml-let tag to store the data in a local variable
> for future use (instead of calling the python script with dtml-var).
>
> HTH
>
> Jonathan
>
>
>
>
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
More information about the Zope
mailing list