我正在研究一些测试用例,并tidy
输出以与理想输出进行比较。 但是我遇到了一个奇怪的地方,它包裹在标签的中间。 是否有我缺少的配置设置(除了关闭包装)来使其在标签不在里面之前中断?
<html>
<head>
<title></title>
</head>
<body>
<form>
<input id="$nodeid[0]" /><input id=
"$nodeid[1]" /><input id="$nodeid[2]" /><input id=
"$nodeid[3]" />
</form>
</body>
</html>
我目前的配置是。
$config = array(
'indent' => true,
'output-xhtml' => true,
'literal-attributes' => true,
'preserve-entities' =>true,
'markup' => TRUE,
'show-warnings' =>TRUE,
'char-encoding' =>'utf8',
'punctuation-wrap' => true,
'wrap' => 60);
将
output-xhml => true
替换为 output-xml => true
有效。