Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Tidy 将 php 文件中的许多 html4 标签转换为 xhtml,就像在 Debian 中这样:
tidy -indent -o xhtmltestnew.php -asxhtml xhtmltest.php
我有两个问题。
1)我可以让整洁忽略我的PHP代码吗?它通过转换它搞砸了很多。
2)由于某种原因,我无法关闭 img 和 br 标签 - 可以这样做吗?
我应该尝试另一种方法吗?