summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.class b/html.class
index cca2de7..eb3e174 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 (isset($data) || preg_match('/^(a|div|iframe|script|span|td|textarea)$/i', $name))
+ if (!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";