Using javascript, how would I go about replacing a single instance of a subtring in a block like this where I only know what the substring is and what line it is on? For instance, in the example below, I would need to replace instance of “dolor” on line 3 with "<span>dolor</span>"
mystring = "Lorem ipsum dolor sit ametn"+
"Lorem ipsum dolor sit ametn"+
"Lorem ipsum dolor sit ametn"+
"Lorem ipsum dolor sit ametn"+
"Lorem ipsum dolor sit ametn"+
"Lorem ipsum dolor sit ametn"