I'm trying to keep all text in one tag when looping through an array of split up text
<template v-for="message in array">
<span v-if="some condition">
<a href="">{[ message }}</a>
</span>
<span v-else>
{{ message }}
</span>
</template
This renders span over and over like this:
<span>Text</span>
<span><a href="">link</a></span>
<span>text again</span>
How do I make it so it's just like this:
<span>Text <a href="">link</a> text again</span>