diff options
author | Urban Müller | 2007-01-22 13:55:05 +0000 |
---|---|---|
committer | Urban Müller | 2007-01-22 13:55:05 +0000 |
commit | 84b58ac0ab95629fb0c08aa31cb707d795e94ad3 (patch) | |
tree | faa7ac7c6ba6b16cb77ebce1d8ec068324b58c22 | |
parent | 625060d503a1b7eb081c175122c6a73c1f7b2404 (diff) | |
download | itools-84b58ac0ab95629fb0c08aa31cb707d795e94ad3.tar.gz itools-84b58ac0ab95629fb0c08aa31cb707d795e94ad3.tar.bz2 itools-84b58ac0ab95629fb0c08aa31cb707d795e94ad3.zip |
enforce contentless tags
-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 (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"; |