]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/html_mail_functions.php
earning_name renamed to earning_provider
[mailer.git] / inc / libs / html_mail_functions.php
index 4e0169b3e083be71cb0d7f008e8e082e1c9a90fa..f077b9ba45c0bd1f0331982ca411c3fb3679974f 100644 (file)
@@ -45,7 +45,7 @@ function addValidHtmlTags() {
        $OUT = '';
        if (!is_array($GLOBALS['html_tags'])) return "";
        foreach ($GLOBALS['html_tags'] as $tag) {
-               $OUT .= ", ".strtoupper($tag);
+               $OUT .= ', ' . strtoupper($tag);
        }
        $OUT = substr($OUT, 2);
        return $OUT;
@@ -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;
 }