Y
Y
Yuri2020-08-06 11:49:13
Vue.js
Yuri, 2020-08-06 11:49:13

How to remove tags?

5f2bc3604f14a395765017.png
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

1 answer(s)
A
Aetae, 2020-08-08
@Aetae

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:contentsor 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 question

Ask a Question

731 491 924 answers to any question