diff --git a/modules/field/modules/text/text.test b/modules/field/modules/text/text.test index 6e9c41ac456fa2cbf431ca27a39bc746640268c7..cbd135f74b13c0e627e9cc1b7d26f44b52224ff8 100644 --- a/modules/field/modules/text/text.test +++ b/modules/field/modules/text/text.test @@ -309,11 +309,11 @@ class TextSummaryTestCase extends DrupalWebTestCase { $expected_lb = array( "

\nHi\n

\n

\nfolks\n
\n!\n

", "", - "

", - "

", - "

", - "

", - "

", + "

", + "

", + "

", + "

", + "

", "

\nHi

", "

\nHi

", "

\nHi

", diff --git a/modules/filter/filter.module b/modules/filter/filter.module index def0037c83763c60d13dbd621448b553663870d6..1daf7e8def9a87abaa4a55b4398267bdd9bb3a03 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -983,7 +983,7 @@ function _filter_tips($format_id, $long = FALSE) { */ function filter_dom_load($text) { // Ignore warnings during HTML soup loading. - $dom_document = @DOMDocument::loadHTML('' . $text . ''); + $dom_document = @DOMDocument::loadHTML('' . $text . ''); return $dom_document; } @@ -1018,7 +1018,7 @@ function filter_dom_serialize($dom_document) { foreach ($body_node->childNodes as $child_node) { $body_content .= $dom_document->saveXML($child_node); } - return preg_replace('|<([^>]*)/>|i', '<$1 />', $body_content); + return preg_replace('|<([^> ]*)/>|i', '<$1 />', $body_content); } /** diff --git a/modules/filter/filter.test b/modules/filter/filter.test index 3c4a35ee3ec547c8ba19e3d26337b747fc9728dd..b9e3f760aaf6928a584414278e491ce01bd9cf76 100644 --- a/modules/filter/filter.test +++ b/modules/filter/filter.test @@ -1003,7 +1003,7 @@ class FilterUnitTestCase extends DrupalUnitTestCase { $this->assertEqual($f, '

text

', t('HTML corrector -- tag closing at the end of input.')); $f = _filter_htmlcorrector('

text

text'); - $this->assertEqual($f, '

text

text

', t('HTML corrector -- tag closing.')); + $this->assertEqual($f, '

text

text

', t('HTML corrector -- tag closing.')); $f = _filter_htmlcorrector("