Highlight certain words in Text

I tried using .html in both places as shown below. However, it didn’t work.

$w('#text65').html = $w('#text65').html.replace(new RegExp("carbon", "gi"), (match) => '<mark>${match}</mark>');