我在Windows的命令行环境中使用HTML Tidy。我需要强制将一些html文件转换为xml,即使有错误。
我执行以下步骤:
force-output: yes
tidy -config conf.txt -o filename.xml filename.htm
但是,没有生成“filename.xml”。注意我在http://infohound.net/tidy/tidy.pl使用整洁的在线版本时,能够从同一个“坏”HTML文件中获取输出XML文件。
我做错了什么?
答案 0 :(得分:0)
我想出了一种方法:
tidy --force output yes -o filename.xml filename.htm