php tidy的替代方法? [英] An alternative to php tidy?
本文介绍了php tidy的替代方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用php tidy处理数据库中的html输入,
I use php tidy to process html input in my database,
$fragment = tidy_repair_string($dom->saveHTML(), array('output-xhtml'=>1,'show-body-only'=>1));
我已在服务器中打开此php_tidy,但我的活动服务器不支持整洁,
I have this php_tidy turned on in my server but my live server doesn't support tidy,
严重错误:调用未定义函数tidy_repair_string() /customers/0/5/a/mysite.com/httpd.www/models/functions.php,第587行
Fatal error: Call to undefined function tidy_repair_string() in /customers/0/5/a/mysite.com/httpd.www/models/functions.php on line 587
是否可以解决此问题?
推荐答案
我发现 htmLawed 很快.我在寻找HTMLPurifier的替代品时发现了它,但速度很慢.
I found htmLawed to be very fast. I found it when looking for an alternative to HTMLPurifier, which was very slow.
这篇关于php tidy的替代方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文