summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-01-22 13:55:05 +0000
committerUrban Müller2007-01-22 13:55:05 +0000
commit84b58ac0ab95629fb0c08aa31cb707d795e94ad3 (patch)
treefaa7ac7c6ba6b16cb77ebce1d8ec068324b58c22
parent625060d503a1b7eb081c175122c6a73c1f7b2404 (diff)
downloaditools-84b58ac0ab95629fb0c08aa31cb707d795e94ad3.tar.gz
itools-84b58ac0ab95629fb0c08aa31cb707d795e94ad3.tar.bz2
itools-84b58ac0ab95629fb0c08aa31cb707d795e94ad3.zip
enforce contentless tags
-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";