From 9ef5fa51fbe41452fc66ff939dca43a2085ce0fa Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 21 Apr 2010 09:56:53 -0400 Subject: [PATCH] - fix <span>0</span> (#1486645) --- program/lib/washtml.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/lib/washtml.php b/program/lib/washtml.php index 2acb752..fbbfa43 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -213,7 +213,7 @@ } 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 { -- Gitblit v1.9.1