N
N
Nikita2020-12-07 21:03:16
Node.js
Nikita, 2020-12-07 21:03:16

How to convert html string to svg and send resulting svg to client in node.js?

const express = require("express");
const app = express();

app.use(express.json());

app.post("/svg", (req, res) => {
 const { html } = req.body;

 // нужно срендерить в svg и отдать клиенту.
});

app.listen(3000);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question