

def render(self, name, value, attrs=None):
    if (value is None):
        value = ''
    flat_attrs = flatatt(self.build_attrs(attrs, name=name))
    content = conditional_escape(force_unicode(value))
    result = ('<pre%s>%s</pre>' % (flat_attrs, content))
    return mark_safe(result)

dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/common/widgets.py TextAreaDiv.render/original