V
V
Vladimir Golub2021-05-12 18:02:07
Vue.js
Vladimir Golub, 2021-05-12 18:02:07

How to solve the problem of using quotes in v-html?

I use Russian translation for translation keys.
How to solve the problem of quotes in this case? Shielding doesn't help.

<li v-html=" this.$t('Hello <p>"World"</p>') " />

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2021-05-12
@RazerVG

"-> &quot;
well, better remove the line from the template in the property of the component

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question