I would like to know if possible to be able to replace any html character that are inside my pre tag's <pre> replace < with < and this > with > </pre> so it does not affect my pre tag's
$('button[id="instant_preview"]').on('click', function() {
var code = $('#editable').text();
$('#preview').html(code);
replace('<',"<");
replace('>',">");
});