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 1877209..098e4b3 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 (strlen($data) || !preg_match('/^(area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param)$/i', $name))
+ if (isset($data) || preg_match('/^(a|div|iframe|script|span|td|textarea)$/i', $name))
$result .= ">$data</$name>$newline";
elseif ($this->_oldhtml)
$result .= ">$newline";