From a7b6be0f0300a542937bc570feba9cae736aaa26 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 7 Jun 2009 16:25:56 +0000 Subject: [PATCH] Fix some validator errors. [SVN r53724] --- common/code/boost_archive.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/code/boost_archive.php b/common/code/boost_archive.php index 8bb46c4c..c30b26c9 100644 --- a/common/code/boost_archive.php +++ b/common/code/boost_archive.php @@ -492,6 +492,9 @@ HTML; function _content_basic() { + $is_xhtml = preg_match('@]*xhtml@i', $text); + $tag_end = $is_xhtml ? '/>' : '>'; + $text = $this->_content_html_pre(); $text = preg_split('@(|]*>)@i',$text,-1,PREG_SPLIT_DELIM_CAPTURE); $state = 0; @@ -499,8 +502,8 @@ HTML; print($section); switch($state) { case 0: - print ''; - print ''; + print '