In my Vue 3 app, I want to highlight words in a text, such as in the following HTML:
span {
background-color: yellow;
}
<span>foo</span>
<span>bar</span>
baz
qux
However, Vue removes the whitespace between tags, so the gaps between the <span>s disappear:
span {
background-color: yellow;
}
<span>foo</span><span>bar</span> baz qux
How can I preserve the whitespace between the <span>s? I cannot use as the spaces should break and none of the other white space entities has the same size as a usual space.