Mercurial > genshi > genshi-test
view examples/tutorial/geddit/lib/ajax.py @ 655:b090bf737111
The `striptags` function now also removes HTML/XML-style comments. Closes #150. Thanks to Armin Ronacher for the report and suggested fix.
author | cmlenz |
---|---|
date | Thu, 22 Nov 2007 19:43:05 +0000 |
parents | dba522b4c31d |
children |
line wrap: on
line source
import cherrypy def is_xhr(): requested_with = cherrypy.request.headers.get('X-Requested-With') return requested_with and requested_with.lower() == 'xmlhttprequest'