vue-mathjax
vue-mathjax copied to clipboard
HTML tags rendered as string in DOM
const text = "<p>What is the value of $\sqrt{3x-1}+(1+x)^2$?</p>";
I passed text
as formula in the vue-mathjax component and passed false value to safe prop. It is rendering the DOM correctly.
But when I look into the page source, it shows that HTML is rendered as string in DOM.
I want it to be rendered as HTML. How can I fix this?
How you check the page source? it is a SPA application, I think page source code should not have code like these, Can you provide a demo?
happening to me also