{* *}{strip} {* *} {$tags = $item->tags|default:''} {if $and_keywords|default:false} {$tags = $tags|cat:','|cat:($item->meta_keywords|default:'')} {/if} {$tags = ($tags|strip_tags)|regex_replace:'/[\s\t\r\n]+/':' '} {$tags = $tags|regex_replace:'/[^а-яёa-z0-9,\s\-]+/iu':','} {$tags = $tags|regex_replace:'/\s*,\s*/':','} {$tags = $tags|regex_replace:'/,+/':','} {$tags = $tags|regex_replace:'/^[\s,]+/':''} {$tags = $tags|regex_replace:'/[\s,]+$/':''} {* *} {if $tags != ''}
{/if} {/strip}