Several code-cleanups:
[mailer.git] / inc / libs / html_mail_functions.php
index 4e0169b3e083be71cb0d7f008e8e082e1c9a90fa..eb205ec7345e7edd84dadf394b85ac0e42a1614f 100644 (file)
@@ -58,11 +58,12 @@ function checkHtmlTags ($html) {
                $check = strtolower(substr($test, strpos($test, '<') + 1, strpos($test, '>') - strpos($test, '<') - 1));
                $check = str_replace('/', '', $check);
                if (!in_array($check, $GLOBALS['html_tags'])) {
-                       // Invalid tag found!
+                       // Invalid tag found
                        return '';
-               }
+               } // END - if
                $test = substr($test, strpos($test, '>') + 1);
-       }
+       } // END - while
+
        // Return tested code
        return $html;
 }