We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
好吧,我不能肯定地说这对所描述的所有内容都“有效”,但 Tidy 所做的不仅仅是清理标签。
请参阅 HTML Tidy 配置选项,尤其是与 Microsoft Word 相关的选项(例如 word-2000)
Well, I can't say definitively that this "works" for everything described, but Tidy does a bit more than clean up tags.
See the HTML Tidy Configuration Options, especially those relating to Microsoft Word (like word-2000)
如果您想知道自己是否完成了合理的工作,您应该尝试这些测试 (使用像 Tidy 这样的东西你可能会发现你没有完成合理的工作)。
一些选项:
我看来,任何使用正则表达式且不解析标记的内容都会受到怀疑(而且实现起来太复杂)。
If you want to know if you've done a reasonable job, you should try these tests (using something like Tidy you'll probably find you haven't done a reasonable job).
Some options:
Anything that uses regular expressions and doesn't parse the markup would be suspect in my mind (and just too complicated to implement).
老问题,但有些人可能仍然觉得这很有用。 查看 http://necolas.github.com/normalize.css/。 效果很好!
Old question but some people might still find this useful. Check out http://necolas.github.com/normalize.css/. It works well!
不要忘记美丽的汤
如何修复错误的嵌套/未闭合HTML 标签?
Don't forget beautiful soup
How do I fix wrongly nested / unclosed HTML tags?