Fix broken HTML elements and unescaped entities

Some fixes for status_captiveportal.php