- fix <span>0</span> (#1486645)

release-0.6
alecpl 15 years ago
parent 93c0188854
commit 9ef5fa51fb

@ -213,7 +213,7 @@ class washtml
} else if(isset($this->_html_elements[$tagName])) {
$content = $this->dumpHtml($node);
$dump .= '<' . $tagName . $this->wash_attribs($node) .
($content || isset($this->_block_elements[$tagName]) ? ">$content</$tagName>" : ' />');
($content != '' || isset($this->_block_elements[$tagName]) ? ">$content</$tagName>" : ' />');
} else if(isset($this->_ignore_elements[$tagName])) {
$dump .= '<!-- ' . htmlspecialchars($tagName, ENT_QUOTES) . ' not allowed -->';
} else {

Loading…
Cancel
Save