summaryrefslogtreecommitdiff
path: root/html.class
diff options
context:
space:
mode:
Diffstat (limited to 'html.class')
-rw-r--r--html.class2
1 files changed, 1 insertions, 1 deletions
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</$name>$newline";
elseif ($this->_oldhtml)
$result .= ">$newline";