def fixup_content()

in pelican/plugins/asfgenid.py [0:0]


def fixup_content(content):
    text = content._content # pylint: disable=protected-access
    modified = False
    # Find messed up html
    for regex, replace in FIXUP_UNSAFE:
        m = regex.search(text)
        if m:
            modified = True
            text = re.sub(regex, replace, text)
    if modified:
        content._content = text # pylint: disable=protected-access