]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/decorator/xml/class_XmlCompactorDecorator.php
Completed decorator, extended interface
[core.git] / inc / classes / main / decorator / xml / class_XmlCompactorDecorator.php
index dafee49f5cd9e3ba7732f24f928f898a594fbaa1..c73e4841d441809b9bc542da64f1aa110da3a51b 100644 (file)
@@ -63,6 +63,9 @@ class XmlCompactorDecorator extends BaseDecorator implements Parseable {
         * @throws      XmlCompactorDecoratorException  If an XML error was found
         */
        public function parseXmlContent ($content) {
+               // Remove all comments for better compacting
+               $content = $this->getParserInstance()->getTemplateInstance()->compactContent($content);
+
                // Parse the content
                $this->getParserInstance()->parseXmlContent($content);
        }