我必须对一些未格式化的 HTML 进行一些更改(没有换行符,什么也没有),并且想知道是否有任何基于 Web 或开源的工具可以自动格式化它以使其更易于阅读。
谢谢!
最佳答案
看看tidy - 文档概述:
When editing HTML it's easy to make mistakes. Wouldn't it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Well now there is! Dave Raggett's HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
关于HTML格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1244645/