[-] FO : trailing \t in minified html

This commit is contained in:
gRoussac
2013-11-26 18:41:02 +01:00
parent c5b6ec5c3c
commit 13b5762367
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class MediaCore
{
//set an alphabetical order for args
$html_content = preg_replace_callback(
'/(<[a-zA-Z0-9]+)((\s?[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']\s?)*)>/',
'/(<[a-zA-Z0-9]+)((\s\t?[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']\s\t?)*)>/',
array('Media', 'minifyHTMLpregCallback'),
$html_content,
Media::getBackTrackLimit());
@@ -24,8 +24,7 @@
*}
<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">
<h4><a href="{$node.link|escape:'html':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
title="{$node.desc|strip_tags|trim|escape:'html':'UTF-8'}">{$node.name|escape:'html':'UTF-8'}</a></h4>
<h4><a href="{$node.link|escape:'html':'UTF-8'}"{if isset($currentCategoryId) && $node.id == $currentCategoryId} class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'html':'UTF-8'}">{$node.name|escape:'html':'UTF-8'}</a></h4>
{if $node.children|@count > 0}
<ul class="main-level-submenus">
@@ -24,8 +24,7 @@
*}
<li {if isset($last) && $last == 'true'}class="last"{/if}>
<a href="{$node.link|escape:'html':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
title="{$node.desc|strip_tags|trim|escape:'html':'UTF-8'}">{$node.name|escape:'html':'UTF-8'}</a>
<a href="{$node.link|escape:'html':'UTF-8'}"{if isset($currentCategoryId) && $node.id == $currentCategoryId} class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'html':'UTF-8'}">{$node.name|escape:'html':'UTF-8'}</a>
{if $node.children|@count > 0}
<ul>
{foreach from=$node.children item=child name=categoryTreeBranch}