[mod_python] PSP escaping HTML

Erik Stephens mod_python at 24ksoftware.com
Mon Mar 15 10:35:25 EST 2004

On Mon, 15 Mar 2004, Johannes Öhlin wrote:

> I've encountered some strange behavior of PSP. Whenever I have
> backslashes in my html-template file PSP messes things up and
> replaces for example \n with a newline. This destroys some of my
> javascripts.
> Can anyone explain what's going on? Am I overlooking something or
> have I encountered a bug?

My gut tells me it's not a bug.  Have you tried escaping them (e.g
\\n, \\\n, etc.)?  Is that feasible?

Best regards,

More information about the Mod_python mailing list