Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML tags rendered as string in DOM #13

Open
imanubhardwaj opened this issue May 27, 2020 · 2 comments
Open

HTML tags rendered as string in DOM #13

imanubhardwaj opened this issue May 27, 2020 · 2 comments

Comments

@imanubhardwaj
Copy link

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?

@justforuse
Copy link
Owner

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?

@kimutaiRop
Copy link

happening to me also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants