Skip to content

Ampersands in text break exported SVGs #113

@alilleybrinker

Description

@alilleybrinker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions