Ejemplo n.º 1
0
    def get_plain_text(self):
        from tcms.core.utils.html import html2text
        from django.utils.encoding import smart_str

        self.action = html2text(smart_str(self.action))
        self.effect = html2text(smart_str(self.effect))
        self.setup = html2text(smart_str(self.setup))
        self.breakdown = html2text(smart_str(self.breakdown))

        return self
Ejemplo n.º 2
0
    def get_plain_text(self):
        from tcms.core.utils.html import html2text
        from django.utils.encoding import smart_str

        self.action = html2text(smart_str(self.action))
        self.effect = html2text(smart_str(self.effect))
        self.setup = html2text(smart_str(self.setup))
        self.breakdown = html2text(smart_str(self.breakdown))

        return self
Ejemplo n.º 3
0
    def get_plain_text(self):
        from tcms.core.utils.html import html2text

        self.plan_text = html2text(self.plan_text)
        return self
Ejemplo n.º 4
0
    def get_plain_text(self):
        from tcms.core.utils.html import html2text

        self.plan_text = html2text(self.plan_text)
        return self