Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Conditionally apply escapeXhtml to prevent export image crash #2313

Merged
merged 1 commit into from Sep 18, 2023

Conversation

igorDykhta
Copy link
Collaborator

escapeXhtml() is applied to export image data URIs to prevent an uglify issue (caused by newline characters in SVG attribute values) when used with webpack. However, the function corrupts exported images, when used with esbuild.

This PR adds a setting to uiState.exportImage which controls whether escapeXhtml() should be applied, so we can disable it in Studio, because it's built with esbuild.

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
@igorDykhta igorDykhta merged commit 090ef0b into master Sep 18, 2023
9 checks passed
@delete-merged-branch delete-merged-branch bot deleted the igr/ups-apply-escapeXhtml branch September 18, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants