|
|
@@ -73,10 +73,10 @@
|
|
|
return text
|
|
|
}
|
|
|
const word = pageInfo.value.name;
|
|
|
- const regex = new RegExp(word, 'gi');
|
|
|
+ const regex = /<([^>]+)>/g;
|
|
|
console.log('pageInfo.value.name', pageInfo.value.name);
|
|
|
return text.replace(regex, (match) => {
|
|
|
- return `<span style="color: #3a7fe9;">${match}</span>`;
|
|
|
+ return `<span style="color: #3a7fe9;">${word}</span>`;
|
|
|
});
|
|
|
}
|
|
|
const handleBack = () => {
|