[mod_python] PSP escaping HTML

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Mar 16 09:47:12 EST 2004



On Tue, 16 Mar 2004, [ISO-8859-1] Johannes ?hlin wrote:

> It is indeed possible to escape the html, but that means corrupting it.
> Changing the html, adapting it to PSP, doesn't really address the
> problem, it's more of a quick fix of the symptom.
>
> Isn't PSP supposed to pass on everything not enclosed in <% %> as is?
> Looking at the output of display_code() it seems like PSP escapes quotes
> ("), but not backslashes. Is there a reason for this?

I agree, this is a bug in PSP - you shouldn't have to escape backslashes.

Grisha


More information about the Mod_python mailing list