Reserialize Svg #4
-
Can you provide the ability to reserialize svg, some requirements will require svg to change color or other |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Instead of this simple tool, you probably need jsdom, which makes it easy to serialize svg.😀 |
Beta Was this translation helpful? Give feedback.
-
If you need to dynamically set the color of the svg, I think it is better to replace it with a string template. For example, in react svgContent.replace(`"#ff0000"`, "{props.red}") I hope it helps. |
Beta Was this translation helpful? Give feedback.
If you need to dynamically set the color of the svg, I think it is better to replace it with a string template.
For example, in react
I hope it helps.