0

I'm using jspdf to render text that I get from a text editor (which means the text has HTML tags and styles and classes), i'm using the method .html when the note is basic text and it's working fine, but when my text has links the links gets weirdly formatted (extra spaces) and it's not clickable, I can't use other methods like .text or .textWidthLink because they don't strip the html from the tags and doesn't keep the editor styles

            await doc.html(text, {
                x: x,
                y: dy,
            });

is there anyway to render html without the tags but keeping the styles and at the same time get clickable and styled links.enter image description here

0

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.