Location: PHPKode > scripts > K-Pregs > k-pregs/examples/html.php
<?php

require("../kpregs.php");

/*
Check if a text has valid html
*/

$text = "<html>
<head>
</head>
<body>
blah blah
</body>
</html>";
if (kpreg_is_valid_html($text)) // valid
 echo("Valid!");
else
 echo("Invalid!");

?>
Return current item: K-Pregs