def execute(self): locations = self._locations email = self.bus.email tags = self._tags if "subject" in locations: email.subject = remove_tags(text=email.subject, tags=tags) if "body" in locations: if email.text: email.text = remove_tags(text=email.text, tags=tags) if email.html: email.html = remove_tags(text=email.html, tags=tags) return True
def _remove_hash_tag(self, text): return remove_tags(text=text, tags=self._tags)