Commit e80acf8
committed
Move the "don't escape text in labels" test to only test SVG
Since a0f2eef, label text is passed to
<AppNodeText> as HTML, rather than text. This reintroduces the HTML
injection that was eliminated in #908.
Setting v-html was done to support rendering highlighted text, but it
also makes it so that any HTML in labels is also passed straight through
as HTML. It also probably introduces some bugs in rendering genotypes
that have "<...>" strings in them.
I'm doing this now because we really need to get the SVG rendering
fixed.1 parent dcf216e commit e80acf8
File tree
2 files changed
+5
-2
lines changed- frontend
- src/components
- unit
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments