As now, template engine supports line feeds in comments

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9557 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-10-11 04:12:45 +00:00
parent 8ead9f7651
commit 9069d63d45

View file

@ -170,7 +170,7 @@
}
// replace comments
$buff = preg_replace('@<!--//.*?-->@', '', $buff);
$buff = preg_replace('@<!--//.*?-->@s', '', $buff);
// replace value of src in img/input/script tag
$buff = preg_replace_callback('/<(?:img|input|script)(?:(?!["\'\/]\s*>).)* src="(?!https?:\/\/|[\/\{])([^"]+)"/is', array($this, '_replacePath'), $buff);