'Vue.js line break when finding a trademark character
Do you know if it is possible for example, when I write a text and my final word is a trademark character the next word / phrase automatically line break?
My code Example:
Here I have my words:
<b>{{ product.fields.name.value }}</b>
and I created this computed using "replace" only to example to replaces my string:
productTextReplaceBrTags: function() {
const doc = this.product.fields.name.value;
return doc.replace('®', '<br>');
},
what can I use to add line break /n after (®).
Example: Hello world ® I'm here
What I need: Hello world ® (I'm here) bellow this symbol ®
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
