X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fhtml.php;h=b82dc5eefd9ad3ddebfaea305037f383cb5bbed3;hb=3379969eccbecc4c856ec1845f663688ca82e855;hp=9ee1cd71b6852c4bf878b43e8e98d7a236425a9b;hpb=76911253eb850bacde3d86c8cb7b4af072e67ebe;p=squirrelmail.git diff --git a/functions/html.php b/functions/html.php index 9ee1cd71..b82dc5ee 100644 --- a/functions/html.php +++ b/functions/html.php @@ -11,9 +11,20 @@ * 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"; } else { - $ret .= ' />'; + $ret .= '>'; } return( $ret );