Skip to content

SVG is not fully working #110

Answered by tiptronic
elementalTIMING asked this question in Help
Discussion options

You must be logged in to vote

hi @elementalTIMING,

  1. you can't use <style> (second example), because that's CSS and not natively supported. (Best is to stick with SVG tiny 1.2 spec)
  2. did you try to encode your output (because in the first example it contains non-ascii values (e.g. %)?

ev.action.setImage('data:image/svg+xml;charset=utf8,' + encodeURIComponent(svg));

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@elementalTIMING
Comment options

Answer selected by elementalTIMING
Comment options

You must be logged in to vote
2 replies
@WillFM
Comment options

@tiptronic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants