Excuse me, with data in this format, how to cut the string according to the given rules
data:
how to cut the string according to the given rules
{
'content': 'key1vip has been serving you for 2 days, and the customer service will provide you with professional answers and formulate solutions',
'keywords': [{
'keyword': 'key1',
'replaceKeyword': 'On',
'link': '',
'color': '',
}, {
'keyword': 'key2',
'replaceKeyword': '30',
'link': '',
'color': '',
}]
}
Convert to the following format
const _array = [
{text: 'Already for you'},
{text: 'on', link: '', color: ''},
{text: 'vip service'},
{text: '30', link: '', color: ''},
{text: 'days, customer service will provide you with professional answers and make plans'},
]