I couldn\'t find this anywhere, partly because its keywords are pretty common.
$(\'.pause_button\').text(\'
.text() actually escapes all HTML specific characters, .html() doesn't.
Use .html() instead of .text().
Use .html()
$('.pause_button').html('<img src="../imgs/icons/control_pause_blue.png" alt="Resume" /> Resume');
Make use of the .html function avaialble in jQuery, .html().
For example:
$('div.demo-container').html('<p>All new content. <em>You bet!</em></p>');
In your case
$('.pause_button').html('<img src="../imgs/icons/control_pause_blue.png"
alt="Resume" /> Resume');
You should use .html();.
use .html()
$('.pause_button').html('<img src="../imgs/icons/control_pause_blue.png" alt="Resume" /> Resume');