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

Ampersands in text break exported SVGs #113

Open
alilleybrinker opened this issue Jul 4, 2024 · 0 comments
Open

Ampersands in text break exported SVGs #113

alilleybrinker opened this issue Jul 4, 2024 · 0 comments

Comments

@alilleybrinker
Copy link

In an exported SVG which you may, for example, want to render with an <img> tag in an HTML document, the ampersand is expected to be encoded with &amp;. Right now, the SVG exports does not do this encoding, so an exported SVG with an ampersand can't be used in an HTML <img> tag without first modifying the ampersand manually.

Here's an example input which produces the broken SVG output:


                                                      +-----------------+
                                             Measures |                 | Score & Recommendation
                                            +-------->|  Configuration  |-----------------------+
 +----------------+          +------------+ |         |                 |                       |         +----------+
 |                |   Data   |            |-+         +-----------------+                       |         |          |
 |  Data Sources  |--------->|  Analyses  |                                                     +-------->|  Output  |
 |                |          |            |-+                                                   |         |          |
 +----------------+          +------------+ |                                                   |         +----------+
                                            +---------------------------------------------------+
                                                                   Concerns

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

No branches or pull requests

1 participant