mirror of
https://github.com/mrclay/minify.git
synced 2025-08-13 17:44:00 +02:00
@@ -130,11 +130,11 @@ class Minify_HTML {
|
|||||||
$this->_html = preg_replace('/^\\s+|\\s+$/m', '', $this->_html);
|
$this->_html = preg_replace('/^\\s+|\\s+$/m', '', $this->_html);
|
||||||
|
|
||||||
// remove ws around block/undisplayed elements
|
// remove ws around block/undisplayed elements
|
||||||
$this->_html = preg_replace('/\\s+(<\\/?(?:area|base(?:font)?|blockquote|body'
|
$this->_html = preg_replace('/\\s+(<\\/?(?:area|article|aside|base(?:font)?|blockquote|body'
|
||||||
.'|caption|center|col(?:group)?|dd|dir|div|dl|dt|fieldset|form'
|
.'|canvas|caption|center|col(?:group)?|dd|dir|div|dl|dt|fieldset|figcaption|figure|footer|form'
|
||||||
.'|frame(?:set)?|h[1-6]|head|hr|html|legend|li|link|map|menu|meta'
|
.'|frame(?:set)?|h[1-6]|head|header|hgroup|hr|html|legend|li|link|main|map|menu|meta|nav'
|
||||||
.'|ol|opt(?:group|ion)|p|param|t(?:able|body|head|d|h||r|foot|itle)'
|
.'|ol|opt(?:group|ion)|output|p|param|section|t(?:able|body|head|d|h||r|foot|itle)'
|
||||||
.'|ul)\\b[^>]*>)/i', '$1', $this->_html);
|
.'|ul|video)\\b[^>]*>)/i', '$1', $this->_html);
|
||||||
|
|
||||||
// remove ws outside of all elements
|
// remove ws outside of all elements
|
||||||
$this->_html = preg_replace(
|
$this->_html = preg_replace(
|
||||||
|
Reference in New Issue
Block a user