Snippet Results not highlighting after transforming

I’m using Instantsearch.js and facing a problem.

I want to transform a Snippet result that contains HTML entities so I’m using the transformItems to do that. But then, the snippet it’s not getting highlighted.

Code below:

Any tips? Thanks in advance.