Comments (3)
If you are in a Browser environment, you can use DOMParser to do exactly what you're asking.
If you are in a NodeJS environment, you can accomplish the same using jsdom.
from svgson.
@LiamAttClarke thank you! I don't remember what I was wanting to do with it back in August, but that's good info to have.
from svgson.
Hi @bgmort, thanks for open the Issue.
Don't know, but super curious on what you build over in that case!
from svgson.
Related Issues (20)
- JSON schema? HOT 10
- _svgson.default.parse is not a function HOT 2
- --title in master branch HOT 2
- html entity amp; being inserted into urls? HOT 4
- svgson is not a function HOT 1
- Consider using ^ or ~ versions in package.json HOT 2
- Set required version of `svgo` as at least 1.3.2 HOT 2
- stringify:: Having & symbol rendered in text? HOT 2
- main source file HOT 1
- import files from src folder HOT 3
- Keep default values HOT 3
- Why is svgson an async function? HOT 2
- Bump svgo to latest version? HOT 4
- Is repo still active? HOT 5
- Remove omit-deep dep? HOT 1
- version 5.2.1 on npm? HOT 1
- Special characters generate weird CDATA tag? HOT 4
- How to convert JSON to SVG? HOT 2
- Document new stringify features
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svgson.