Is there a PHP function/class that cleans my HTML code?
For example:
$html = "<ul><li>item1</li><li>item2</li>";
echo htmlClean($html);
/*
Outputs:
<ul>
<li>item1</li>
<li>item2</li>
</ul>
*/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With