PHP-Tidy';u'-标记替换为';span';

PHP-Tidy';u'-标记替换为';span';,php,tidy,Php,Tidy,有人能帮我找出tidy的问题吗 下一行: <p><u>Risk Warning</u><br />Please note that...</p> 风险警告请注意 之后: $config = array( 'clean' => true, 'doctype' => '<!DOCTYPE HTML>', 'drop-proprietary-a

有人能帮我找出tidy的问题吗

下一行:

<p><u>Risk Warning</u><br />Please note that...</p>
风险警告
请注意

之后:

$config = array(
            'clean' => true,
            'doctype' => '<!DOCTYPE HTML>',
            'drop-proprietary-attributes' => true,
            'output-xhtml' => true,
            'show-body-only' => true,
            'drop-font-tags' => false,
            'merge-spans' => true,
            'wrap' => '0',
            'ascii-chars' => false,
            'char-encoding' => 'utf8',
            'input-encoding' => 'utf8',
            'output-encoding' => 'utf8'
        );
$tidy = new \tidy();
$tidy->parseString($text, $config, 'utf8');
$tidy->cleanRepair();
echo tidy_get_output($tidy);
$config=array(
“干净”=>正确,
“doctype'=>”,
“删除专有属性”=>true,
“输出xhtml”=>true,
“仅显示正文”=>true,
“删除字体标记”=>false,
“合并范围”=>true,
'换行'=>'0',
“ascii字符”=>false,
'字符编码'=>'utf8',
“输入编码”=>“utf8”,
“输出编码”=>“utf8”
);
$tidy=new\tidy();
$tidy->parseString($text,$config,'utf8');
$tidy->cleanRepair();
echo tidy_get_输出($tidy);
替换为:

<p><span class="c1">Risk Warning</span><br />Please note that...</p>
风险警告
请注意

如何防止“u”标记更改?提前感谢。

$tidy->cleanRepair();-这里不需要