'Render as text or attribute of an XML element
@param element: the element
@param attributes: the attributes dict of the element
@param name: the attribute name'

def render_node(self, element, attributes, name):

    text = s3_unicode(self.represent())
    if (text and ('<' in text)):
        try:
            stripper = S3MarkupStripper()
            stripper.feed(text)
            text = stripper.stripped()
        except:
            pass
    if (text is not None):
        if (element is not None):
            element.text = text
        else:
            attributes[name] = text
        return
