我使用PHP整潔處理HTML輸入我的數據庫,替代php tidy?
$fragment = tidy_repair_string($dom->saveHTML(), array('output-xhtml'=>1,'show-body-only'=>1));
我有這個php_tidy在我的服務器開啓,但我活的服務器不支持整齊,
Fatal error: Call to undefined function tidy_repair_string() in /customers/0/5/a/mysite.com/httpd.www/models/functions.php on line 587
任何可替代我必須解決這個問題?
也許只有OO方式運行:'$整潔=新整潔();$ clean = $ tidy-> repairString($ dom-> saveHTML(),...);' – Rudie
nope ...但是我發現了另一個已經使用正則表達式的解決方案...謝謝! – laukok