-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Vue filter dont work on v-html #6056
Comments
Documentation is clear on this matter - https://vuejs.org/v2/guide/syntax.html#Filters (it only works inside mustache interpolations and v-bind expressions)
or you can call function declared in the // edit: i just realized, you can use syntax:
|
what @sqal said 🙂 |
Definitely what @sqal discovered is the best solution and perhaps should be documented. Using |
Great, this works for me! thank you. |
Version
2.3.4
Reproduction link
https://github.com/prsolucoes/gohc-web-app/blob/vuejs/src/components/HealthcheckList.vue
Steps to reproduce
1 - Create any component
2 - Create any filter that return HTML and register with Vue.filter
3 - Use the filter with v-html to render original html from filter:
What is expected?
Render the HTML returned from filter
What is actually happening?
Error:
The only way that works:
The text was updated successfully, but these errors were encountered: