Skip to content

Unable to access svg string directly #7

@jiseungjung

Description

@jiseungjung

Hi there!

For my project I just need the svg string generated using QRCodeStyling instance. For now I am using the append method and extracting the svg string from a virtual element.

const qrCode = new QRCodeStyling(options)
const container = document.createElement('div')
qrCode.append(container)
const svg = container.innerHTML

I was wondering if there was a more elegant way of doing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions