Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

fixing unclosed html tags

$str = "
<html>
 <head>
  <title>test</title>
 </head>
 <body>
  <p>error</i>
 </body>
</html>
";

$doc = new DOMDocument();
@$doc->loadHTML($str);
echo $doc->saveHTML();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fixing #unclosed #html #tags
ADD COMMENT
Topic
Name
1+8 =