1

I am new to HTML Tidy, I just heard of it while checking out options to find HTML tag issues in resource strings. Is there a way to invoke HTML Tidy on a folder of .resx files which could have HTML content? The intent would be to check if HTML tag issues exist. If they exist then report them but not modify the source file.

Since most of the resource file content is not HTML based tags, I would like HTML Tidy not to flag anything without HTML tags as errors. Those resources which have HTML tags and those which have improper tags are my concern.

4

1 に答える 1

1

Tidy は、HTML、XHTML、および XML ファイルを読み取り、クリーンアップされたマークアップを書き込みます。どのタイプのファイルでも実行できますが、doctype の欠落などのエラーを無視することはできません。[power]shell スクリプトfindstr/grepで使用して、doctype を持つファイルを検索し、そのサブセットで tidy を実行します。

于 2013-05-31T16:02:10.117 に答える