managing agresive decoding and ja_JP + utf-8.
[squirrelmail.git] / functions / html.php
index 9ee1cd71b6852c4bf878b43e8e98d7a236425a9b..b82dc5eefd9ad3ddebfaea305037f383cb5bbed3 100644 (file)
  * html outputs.
  *
  * $Id$
+ * @package squirrelmail
  */
 
-    function html_tag( $tag,                // Tag to output
+/**
+ * Generate html tags
+ *
+ * @param string $tag Tag to output
+ * @param string $val Value between tags
+ * @param string $align Alignment (left, center, etc)
+ * @param string $bgcolor Back color in hexadecimal
+ * @param string $xtra Extra options
+ * @return string HTML ready for output
+ */
+function html_tag( $tag,                // Tag to output
                        $val = '',           // Value between tags
                        $align = '',         // Alignment
                        $bgcolor = '',       // Back color
@@ -72,7 +83,7 @@
         if ( $val <> '' ) {
             $ret .= ">$val</$tag>";
         } else {
-            $ret .= ' />';
+            $ret .= '>';
         } 
 
         return( $ret );