Cleaning the tag in the template