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

Is there a way to avoid v-html ? #38

Open
sg1asgard opened this issue May 31, 2021 · 3 comments
Open

Is there a way to avoid v-html ? #38

sg1asgard opened this issue May 31, 2021 · 3 comments

Comments

@sg1asgard
Copy link

Hi all,

markdown-it recommends to not use html:true as it is known as a XSS security issue.
In this case, is there a way to avoid using v-html and instead use {{$ms.renderer(mycontentmd)}} ?

Much appreciated.
George

@jomellelastrilla
Copy link

I use v-dompurify-html to render

@mattwang44
Copy link

mattwang44 commented Aug 22, 2021

Checkout this solution using vue-dompurify-html and the affiliated sample code.

@sg1asgard
Copy link
Author

Checkout this solution using vue-dompurify-html and the affiliated sample code.

Much appreciated!

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