I have a String which should be converted to a QR Code and downloadable as a SVG. The first part to create the QR Code using qrcode-svg is not the problem but converting in a downloadable file gets me a bit.
generateQrCodeSVG(qrCode: string) {
const qrCodeSvg = new QRCode({
content: qrCode,
});
console.log(qrCodeSvg.svg());
const parser = new DOMParser();
const svg = parser.parseFromString(qrCodeSvg.svg(), "image/svg+xml");
}
This is my code so far. Has anyone an idea how to manage that?