Is it possible to highlight arrays and separate each keyword to style

I am trying to separate each key words but it seems reading as one line.
Also I would like to highlight these keywords when matches with query.

Screenshot 2020-12-10 113548

I’ve read this but it did not work for me.

Hi ynaka. The way that you choose to display your results will end up being up to you. Splitting your keywords onto separate lines could be achieved by the following:

Again, the solution you choose to use is going to be completely up to you: Algolia will send the data, but how it’s displayed on your page is determined. by your front-end code.

Hi,
I want them to be a single word for each of them so br is not what I want to do.
I think it will give a space if I put a space instead of br ?
This is my goal.
Screenshot 2020-12-11 103034