Highlight or change a colour of extracted word

Hello everyone,

Hope you are all well and safe. I have a question about highlighting a specific word in a sentence. I have a table with 2 columns and I want to highlight a mentioned word in column 1 in column 2. To elaborate my point I designed a table as an example:

Phrase | Sentence

Am | I am a student

Is | He is a football player

Are | Are you going to school?

Hello | Hello everyone,

Hi | Hi there. Are you ok?

In the sentences column, I want the word “Am” which mentioned in Phrase column to be highlighted. does anyone have any clue for this matter?

Thanks in advance.


Hallo @safa05,

Yes, you can simply use the String Manipulation node and add <b> and </b> before and after the word that you want to be bold. The words are then shown in bold on the JavaScript Table View node. I made a little example workflow to demonstrate what I mean:

HighlightWords.knwf (17.8 KB)

Let me know if that solves your problem.



Hello @janina,

Thank you very much it worked and now I can separate the words.



1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.