Answer the question
In order to leave comments, you need to log in
How to remove tags?
Hello everyone, I have .contents in which the html markup falls into the slot
. Can I somehow iterate over the tags inside this container and remove all tags ?
I’m practically not familiar with the view, but I need to do it
Answer the question
In order to leave comments, you need to log in
It is not "markup" that gets into the slot, but other vue content. Look for the place where this component is used (by #contents
, v-slot:contents
or slot='contents'
), and edit there.
Although given the presence ref
- there is a possible govnokod, with manually crammed markup (search for this.$refs.container
), but it is doubtful.
In any case, in vue you are not working with "tags", but with data. You need to remove the excess before it is rendered in vue.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question