📜  修复未关闭的 html 标签 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:52.550000             🧑  作者: Mango

代码示例1
$str = "

 
  test
 
 
  

error "; $doc = new DOMDocument(); @$doc->loadHTML($str); echo $doc->saveHTML();