简体   繁体   English

如何在HTML标签中找到缺少的右括号?

[英]How to find missing closing bracket in HTML tags?

Weird case from a project I recently took over. 我最近接手的一个项目很奇怪。

There are some HTML tags that are missing their closing '>' eg: 有些HTML标记缺少其结尾的'>',例如:

<div
  class="example"
</div>

This is currently not breaking anything in Chrome but when viewed in IE it has issues. 目前,这在Chrome中没有破坏任何功能,但是在IE中查看时出现问题。

I've tracked down a number of mistakes with it (looked like copy paste work with an iron-ajax block) but would really like a tool that could help me find other places this is happening. 我已经找到了很多错误(看起来像是复制粘贴在铁制ajax块上工作),但确实想要一个可以帮助我找到发生这种情况的工具。

I currently use Atom but would be willing to use anything to track this down. 我目前使用Atom,但愿意使用任何方法来进行跟踪。

HTML Tidy ? HTML Tidy Or any of a number of other HTML validators or linters. 或任何其他其他HTML验证器或linter。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM