summaryrefslogtreecommitdiff
path: root/program/lib/washtml.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-04-21 13:56:53 +0000
committeralecpl <alec@alec.pl>2010-04-21 13:56:53 +0000
commit9ef5fa51fbe41452fc66ff939dca43a2085ce0fa (patch)
treeaa2e58fd05b7422f1ddf1c48529d668842940e1b /program/lib/washtml.php
parent93c01888547210f54bd593d0774f9f63ec38f7a7 (diff)
- fix <span>0</span> (#1486645)
Diffstat (limited to 'program/lib/washtml.php')
-rw-r--r--program/lib/washtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php
index 2acb7529f..fbbfa43c9 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -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 {