def METHOD_NAME(self, context):
    """Custom render function overrides / extends default behaviour"""
    result = super().METHOD_NAME(context)
    result = bleach.clean(result)
    # Remove any escape sequences
    for seq in ['\a', '\b', '\f', '\n', '\r', '\t', '\v']:
        result = result.replace(seq, '')
    # Remove other disallowed characters
    for c in ['\\', '`', ';', '|', '&']:
        result = result.replace(c, '')
    # Escape any quotes contained in the string
    result = result.replace("'", r"\'")
    result = result.replace('"', r'\"')
    # Return the 'clean' resulting string
    return result