From 84b58ac0ab95629fb0c08aa31cb707d795e94ad3 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 22 Jan 2007 13:55:05 +0000 Subject: enforce contentless tags --- html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.class') 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$newline"; elseif ($this->_oldhtml) $result .= ">$newline"; -- cgit v1.2.3