'Get a clean and normalized version of a documents html.'

def _clean(self, d):

    html = Document.objects.get(slug=d.slug).html
    return re.sub('\\s+', '    ', bleach.clean(html, strip=True)).strip()
