So I'm trying to set a filter to replace a hyphen with a <br> to spit it onto a new line.
I've created a filter like this:
filters: {
splitRows: function (value) {
if (!value) return ''
value = value.toString()
return value.replace('-', '</br>')
}
}
And then
<span class="Name">
{{ product.title | splitRows }}
</span>
However, this just prints the </br> instead of breaking the line. I'm new to vue so not sure what I'm doing wrong?