--- nfo/php/libs/com.newsblob.phphtmllib/tag_utils/html_utils.inc 2004/05/06 16:27:37 1.4
+++ nfo/php/libs/com.newsblob.phphtmllib/tag_utils/html_utils.inc 2004/07/07 02:23:42 1.5
@@ -5,7 +5,7 @@
* to help build some Tag objects that are
* commonly used in html.
*
- * $Id: html_utils.inc,v 1.4 2004/05/06 16:27:37 jonen Exp $
+ * $Id: html_utils.inc,v 1.5 2004/07/07 02:23:42 joko Exp $
*
* @author Walter A. Boring IV
* @package phpHtmlLib
@@ -1464,4 +1464,29 @@
return html_a($mailto, $email);
}
+/**
+ * build an tag with content.
+ * written by Bill Shaw 3/16/03
+ * pasted here from http://phphtmllib.newsblob.com/forums/index.php?t=msg&th=189&start=0&rid=0
+ */
+function html_aname($name, $content=NULL, $class=NULL, $target=NULL, $title=NULL) {
+
+ $attributes = array("name" => $name);
+ if ($class) {
+ $attributes["class"] = $class;
+ }
+ if ($target) {
+ $attributes["target"] = $target;
+ }
+
+ if ($title) {
+ $attributes["title"] = $title;
+ }
+
+ $a = new Atag( $attributes, $content);
+ $a->set_collapse();
+
+ return $a;
+}
+
?>