0

I am calling the API (GET API).

https://upiqr.in/api/qr?name=SantanuSinha&vpa=9096213138@ybl&amount=100 I am calling the API from the LWC

I get the response in the SVG format.

How can I display the SVG that I get in the response on LWC

1 Answer 1

0

Are you getting the full svg as text? like <svg>content</svg>, then simply use query selector on a desired div and put innerHtml = response.

Sign up to request clarification or add additional context in comments.

1 Comment

or you can use an iframe to display it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.