From a86d4feaa8256673bd4cebfca45657d5c7b7eeb3 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 24 Jan 2007 22:30:06 +0000 Subject: Allow data in tags which are normally empty (e.g. link) --- html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.class b/html.class index d44f994..1877209 100644 --- a/html.class +++ b/html.class @@ -152,7 +152,7 @@ function _tag($name, $args) } # Apply a kind of magic... this needs further investigation - if (!preg_match('/^(area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param)$/i', $name)) + if (strlen($data) || !preg_match('/^(area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param)$/i', $name)) $result .= ">$data$newline"; elseif ($this->_oldhtml) $result .= ">$newline"; -- cgit v1.2.3