vue-mathjax icon indicating copy to clipboard operation
vue-mathjax copied to clipboard

HTML tags rendered as string in DOM

Open imanubhardwaj opened this issue 4 years ago • 2 comments

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. image But when I look into the page source, it shows that HTML is rendered as string in DOM.

image

I want it to be rendered as HTML. How can I fix this?

imanubhardwaj avatar May 27 '20 09:05 imanubhardwaj

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?

justforuse avatar May 10 '21 12:05 justforuse

happening to me also

kimutaiRop avatar Sep 28 '21 12:09 kimutaiRop