Files

4 lines
157 B
JavaScript
Raw Permalink Normal View History

2026-02-10 08:05:03 +08:00
export const highLight = function (label, keyword) {
return label.replace(keyword, `<span class="t-search__result-item--highLight">${keyword}</span>`);
};