tidy(temp_dir,
tidy_path,
strict_xml=False,
errors_to_ignore=None,
indent=False,
wrap=False,
warnings=True)
| source code
|
Run cherrypy.response through Tidy.
If either 'indent' or 'wrap' are specified, then response.body will be
set to the output of tidy. Otherwise, only errors (including warnings, if
warnings is True) will change the body.
Note that we use the standalone Tidy tool rather than the python
mxTidy module. This is because this module does not seem to be stable and
it crashes on some HTML pages (which means that the server would also
crash)
|