

@property
def diff(self):
    (value1, value2) = (escape(self.change[0]), escape(self.change[1]))
    if (value1 == value2):
        return value1
    return self.render_diff('moderation/html_diff.html', {
        'diff_operations': get_diff_operations(*self.change),
    })

dataset/ETHPy150Open dominno/django-moderation/moderation/diff.py TextChange.diff/original