Is there a way I can apply different CSS classes to specific indexes within a string?
For example, consider this string: "Tip. \n Please search using a third character. \n Or use a wildcard."
I know how to target the first line with CSS using ::first-line, but is there a way to apply additional classes to only the words "character" and "wildcard" in that string? If not, how would I go about doing this in JavaScript or React?
Thank you