Highlight certain words in Text

Hi! I tried this code too and it did not work.
Is it because the text is linked to a column in my collection on a dynamic page?