```
var replacedString = element.innerHTML.replace(selectedString, "<span>" + selectedString + "</span>");

```

If I do `"<span style="color: red">"` then it will end up reading the quotes wrong and not work.