add sanitize_template