escape quote on legend href