def default_formatter(handler, item, value):
    """Default formatter. Convert value to string."""
    if hasattr(value, '__unicode__'):
        value = value.__unicode__()

    return escape(str(value))