summaryrefslogtreecommitdiff
path: root/html.class
diff options
context:
space:
mode:
authorChristian Schneider2007-01-24 22:30:06 +0000
committerChristian Schneider2007-01-24 22:30:06 +0000
commita86d4feaa8256673bd4cebfca45657d5c7b7eeb3 (patch)
tree0d09a4b51f7abaf2c0b75b08ae74958b8f45ec06 /html.class
parent23c257265ab9c3d88408b1c58f82df22e06e17bd (diff)
downloaditools-a86d4feaa8256673bd4cebfca45657d5c7b7eeb3.tar.gz
itools-a86d4feaa8256673bd4cebfca45657d5c7b7eeb3.tar.bz2
itools-a86d4feaa8256673bd4cebfca45657d5c7b7eeb3.zip
Allow data in tags which are normally empty (e.g. link)
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";