]> git.mxchange.org Git - mailer.git/blobdiff - inc/template-functions.php
RDF/RSS parser fixed:
[mailer.git] / inc / template-functions.php
index 9b07f6b3a09fdd9006a7fe27e192d29b2b03fbc0..aa8678f37648f0cf0fae5db9122b2ad0646ffc92 100644 (file)
@@ -2304,6 +2304,9 @@ function compactContent ($uncompactedContent) {
        // First, remove all tab/new-line/revert characters
        $compactedContent = str_replace(chr(9), '', str_replace(PHP_EOL, '', str_replace(chr(13), '', $uncompactedContent)));
 
+       // Make a space after >
+       $compactedContent = str_replace(array('>', '  '), array('> ', ' '), $compactedContent);
+
        // Then regex all comments like <!-- //--> away
        preg_match_all('/<!--[\w\W]*?(\/\/){0,1}-->/', $compactedContent, $matches);
 
@@ -2316,9 +2319,6 @@ function compactContent ($uncompactedContent) {
                } // END - foreach
        } // END - if
 
-       // Set the content again
-       // @TODO Is this needed for e.g. $GLOBALS['template_content'] ? $this->setRawTemplateData($compactedContent);
-
        // Return compacted content
        return $compactedContent;
 }