diff options
author | Christian Schneider | 2007-01-24 22:30:06 +0000 |
---|---|---|
committer | Christian Schneider | 2007-01-24 22:30:06 +0000 |
commit | a86d4feaa8256673bd4cebfca45657d5c7b7eeb3 (patch) | |
tree | 0d09a4b51f7abaf2c0b75b08ae74958b8f45ec06 | |
parent | 23c257265ab9c3d88408b1c58f82df22e06e17bd (diff) | |
download | itools-a86d4feaa8256673bd4cebfca45657d5c7b7eeb3.tar.gz itools-a86d4feaa8256673bd4cebfca45657d5c7b7eeb3.tar.bz2 itools-a86d4feaa8256673bd4cebfca45657d5c7b7eeb3.zip |
Allow data in tags which are normally empty (e.g. link)
-rw-r--r-- | html.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |