def quote(v):
    """
       >>> quote(u"Bjorn's")
       u'"Bjorn\\'s"'
       >>> quote(u'the "best"')
       u'"the &quot;best&quot;"'
    """
    if u'"' in v:
        v = v.replace(u'"', u'&quot;')
    return u'"%s"' % v
