СКРИПТ от --SAM--
Этот скрипт предназначен для обработки HTML-контента и удаления запятых из элемента с классом full_post_tags
Код
<?if($TAGS$)?><!--noindex-->
<div class="full_post_tags"><?if(substr($TAGS$,0,9)='<noindex>')?><?substr($TAGS$,9,-19)?><?else?>$TAGS$<?endif?></div>
<script>$('.full_post_tags').html(function(){return $(this).html().replace(/,/g, "")});</script>
<!--/noindex--><?endif?>
<div class="full_post_tags"><?if(substr($TAGS$,0,9)='<noindex>')?><?substr($TAGS$,9,-19)?><?else?>$TAGS$<?endif?></div>
<script>$('.full_post_tags').html(function(){return $(this).html().replace(/,/g, "")});</script>
<!--/noindex--><?endif?>
Дополнение. Скрипт уберёт запятые у ваших тегов на странице
Код
<script>$('.tagItem').each(function () {
$(this).html($(this).html().replace('(', '<span>').replace(')', '</span>'));
$('.tagItem span').hide();
});</script>
$(this).html($(this).html().replace('(', '<span>').replace(')', '</span>'));
$('.tagItem span').hide();
});</script>
скрипт номер 2 который поможет вам при необходимости очистки числовых данных от лишних символов (квадратных скобок)
Код
<script>
$('.catNumData').each(function () {
rtxt = $(this).text();
numberok = rtxt.replace('[', '').replace(']', '')
$(this).html(numberok);
});
</script>
$('.catNumData').each(function () {
rtxt = $(this).text();
numberok = rtxt.replace('[', '').replace(']', '')
$(this).html(numberok);
});
</script>