question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

content in v-dompurify-html are removed when changing route

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LeSuissecommented, Nov 3, 2019

Thanks for the report.

Fix published in v2.1.1

0reactions
yong123liangcommented, Nov 1, 2019

Please verify the PR, thanks 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found