content in v-dompurify-html are removed when changing route
See original GitHub issueWhen routing to the other pages, the content in <div v-dompurify-html="myContent"></div> is removed (disappeared), is there a way to prevent this behavior? (v-html does not remove the content while routing)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
V-dompurify - HTML automatically removes target=" blank ...
Hello,. This is the expected behavior of DOMPurify, you can override it with a hook see cure53/DOMPurify#317 for more information.
Read more >«WARNING: sanitizing HTML stripped some content» and ...
Why using a pipe to sanitize content when we can use DOMPurify as an entire DomSanitizer ? A meme with text: you don't...
Read more >vue.js - suppressing the v-html wrapping tag - Stack Overflow
What I would like to do is (does not work) <article v-if="toggle"> <template v-html="item.description"></template> <a href="#" ...
Read more >HTML and CSS injection in pipeline error message ... - GitLab
The problem is that neither 'namespace/project' nor 'filename' are HTML encoded prior to being sent to v-safe-html in the Vue view.
Read more >vue-dompurify-html - npm
Safe replacement for the v-html directive. Latest version: 3.1.2, last published: 10 days ago. Start using vue-dompurify-html in your ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for the report.
Fix published in v2.1.1
Please verify the PR, thanks 😃