Skip to content

options.style.background-image with URL incorrectly escapes quotes #191

Open
@sebastientromp

Description

@sebastientromp

Calling this:

domtoimage
	.toJpeg(captureElement, {
		style: {
			'background-image': `url('https://static.zerotoheroes.com/hearthstone/asset/firestone/images/backgrounds/decktracker_main_window.png')`,
		},
	})

it results in the following style:

style="... background-image: url("https://static.zerotoheroes.com/hearthstone/asset/firestone/images/backgrounds/decktracker_main_window.png")"

where you can see the quotes are incorrectly escaped.

Anyway, thanks for the work you're doing, it's a really great tool :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions