replace coding tip custom tag with function