jquery replace text with html code example
Example 1: jquery replace text
$('#id1 p').each(function() {
var text = $(this).text();
$(this).text(text.replace('Kate', 'Nef'));
});
Example 2: jquery replace html
$(element).html("Hello World");