简体   繁体   English

整理返回空字符串

[英]Tidy returns empty string

On my local server, this works fine. 在我的本地服务器上,这可以正常工作。 However, when I try to do this on the production server, the following returns an empty string: 但是,当我尝试在生产服务器上执行此操作时,以下返回空字符串:

$tidy = new tidy();
$tidy->repairString($html);

$html has actual HTML content before repairing (I checked), but repairString returns an empty string. $html在修复之前具有实际的HTML内容(我检查过),但是repairString返回一个空字符串。 Does this indicate a configuration error? 这是否表明配置错误? Is libtidy not properly installed? libtidy安装不正确吗? How can I go about debugging this particular issue? 我该如何调试该特定问题?

EDIT: See comments. 编辑:查看评论。 I've found a very simple way to remove the Tidy dependency, so this question no longer needs an urgent answer. 我找到了一种删除Tidy依赖项的非常简单的方法,因此该问题不再需要紧急答案。 Even so, I'll leave it up for reference. 即使这样,我也会留作参考。

I realized that I don't actually really need Tidy, so I removed the dependency. 我意识到我实际上并不需要Tidy,因此我删除了依赖项。 That was a sufficient answer for me. 这对我来说已经足够了。

Even so, this question remains up for reference. 即使这样,这个问题仍然有待参考。

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

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