def quoteattr(data):
    """Quote an attribute value.

    Escape less then the obvious xml.saxutils.quoteattr,
    e.g. do not convert `\n` to `&#10;`.
    """
    return '"%s"' % data.replace('"', "&quot;")