I am trying to find a specific part of HTML code, and replace it with another using jQuery. I have replicated the issue as simple as possible with a jsfiddle:
In the example, I am trying to change the font from italic to bold when the mouse exits the DOM. I am using replace, but it is not working. I don't know what to change.
$(this).html().replace('<em>', '<strong>').replace('</em>', '</strong>');