View difference between Paste ID: ugKkj7vq and Txc7pJPr
SHOW: | | - or go back to the newest paste.
1
var text = $('.stars').text();
2
var newText = text.replace(/[^\d\+]/g, '<i class="fa fa-star"></i>');
3-
$('.stars').html(newText);
3+
$('.stars').html(newText); // .text() doesn't neither work