I have a field that might contain HTML code as a user input. If I use simple highlighter, it does not escape the input before adding the <em>
tag. E.g. if the input is
"This is a <caption>"
and I search for "caption", I get:
"This is a <<em>caption</em>>"
But I want to get:
"This is a <<em>caption</em>>"
Which will look the same as the input with the matched word highlighted, when rendered as HTML.