阅读背景:

使用纯Python代码在生成的HTML中去除空格

来源:互联网 

I am using Jinja2 to generate HTML files which are typically very huge in size. I noticed that the generated HTML had a lot of whitespace. Is there a pure-Python tool that I can use to minimize this HTML? When I say "minimize", I mean remove unnecessary whitespace from the HTML (much like Google does -- look at the source for google.com, for instance)I am using Jinja2 to generate HTML files which




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: