Created by Дејан Стјепановић 2016-11-01 View revision File snippet.markdown Added Side-by-side diff More Ignore whitespace Hide word diff +Regex: + +``` +([^-|^\?|^=])>\s*([^<|\n]*\w+[^<|\n]*)\s*< +``` + +Replace with: + +``` +$1><?php echo \$this->translate('$2'); ?>< +``` + +-------------------- + +Original: + +``` +<a href="#" class="quick-view"> + <b><span class="icon"></span> Quick view</b> +</a> +``` + +After replace: + +``` +<a href="#" class="quick-view"> + <b><span class="icon"></span><?php echo $this->translate('Quick view'); ?></b> +</a> +``` +-------------------- + +*Tested in PhpStorm*