-
Notifications
You must be signed in to change notification settings - Fork 35
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
Any way to use with v-html description ? #48
Comments
I have the same question |
+1. v-html is how Vue is supposed to work, given that they deprecated the triple moustache. I at least can't really use Text Highlight without this. |
I had this problem as well - seems like it should get fixed at some point, but I used this work around: My desired vue markup would have looked like this:
So instead I added a
and the filter looks like:
In my case I only needed the first query, so if you need more you may have to do a loop of all queries and do a replace on the string each time. Also, this solution leaves out the However, importantly it allows for the same styling that's used in other places with . Additionally, it's important to keep in mind that this is not a bulletproof solution - this logic exists entirely outside of vue-text-highlight, meaning that any place where you change logic/classnames with options like |
Hi Albert,
How would it be possible to search query inside bound text (v-html) ?
The text was updated successfully, but these errors were encountered: