I am getting the value of an input in javascript with this command:
document.getElementById("formula1").value;
I continuously search for a specific substring using indexOf and I am hoping to change the text spacing and italicization of that substring if it is found but leave all other characters alone. Is this possible?